Page 1 of 2
pressed Ctrl+
Posted: Tue Mar 18, 2025 5:19 pm
by rndrei
How to find out if the keys are pressed (CTRL+)?
Code: Select all
Case #PB_Event_Menu
Select EventMenu()
Case #Ctrl and "+"
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:28 pm
by AZJIO
Code: Select all
AddKeyboardShortcut(#Window , Shortcut , Event)
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:33 pm
by rndrei
Code: Select all
AddKeyboardShortcut(#WINDOW, #PB_Shortcut_Control | #PB_Shortcut_+)
Shortcut_+ there is no such thing
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:35 pm
by AZJIO
#PB_Shortcut_Add ?
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:38 pm
by moulder61
AZJIO beat me to it!
I was going to say how about #PB_Shortcut_Add? That's the + key?
Maybe that only applies to the keypad though?
I'm just guessing.
Moulder
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:46 pm
by rndrei
doesn't work!
What will be the minus?
Code: Select all
#ctrlplus=100
AddKeyboardShortcut(#WINDOW, #PB_Shortcut_Control| #PB_Shortcut_Add, #ctrlplus)
Case #PB_Event_Menu
Select EventMenu()
Case #ctrlplus
debug("CTRL +")
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:50 pm
by AZJIO
rndrei wrote: Tue Mar 18, 2025 5:46 pm
What will be the minus?
#PB_Shortcut_Subtract
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:57 pm
by rndrei
NOT WORKED!
Code: Select all
#window=0
#ctrlplus=1
OpenWindow(#window, 0, 0, 250, 105, "pressed key..", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
AddKeyboardShortcut(#window, #PB_Shortcut_Control| #PB_Shortcut_Add, #ctrlplus)
Repeat
EventID=WaitWindowEvent()
Select EventID
Case #ctrlplus
Debug("pressed ctrl+")
EndSelect
Until WaitWindowEvent() = #PB_Event_CloseWindow
End
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 5:59 pm
by RASHAD
Are you using a lab?
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:01 pm
by rndrei
RASHAD wrote: Tue Mar 18, 2025 5:59 pm
Are you using a lab?
didn't understand the question?
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:04 pm
by AZJIO
rndrei wrote: Tue Mar 18, 2025 5:57 pm
NOT WORKED!
Code: Select all
Case #PB_Event_Menu
Select EventMenu()
Case #ctrlplus
Turn on the NumLock numeric keypad and tap on it +
"+" is used with Shift, and "=" is used with Control
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:05 pm
by RASHAD
Your machine is a desktop or laptop?
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:09 pm
by rndrei
There is a desktop and a laptop!
What is the purpose of this question?
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:12 pm
by AZJIO
In the help file, do this:
#PB_Shortcut_Return (Enter)
#PB_Shortcut_Add (+)
There are too many questions.
???
#PB_Shortcut_Select
#PB_Shortcut_Execute
#PB_Shortcut_Snapshot (PrtScn?)
#PB_Shortcut_Help
Re: pressed Ctrl+
Posted: Tue Mar 18, 2025 6:22 pm
by rndrei
I have a laptop and there is no tab panel! Do you need plus and minus on the main keyboard?!
Can you add this feature in a future version? And are there any options now, for example a function in C?