langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
26
Task/Keyboard-macros/PureBasic/keyboard-macros.purebasic
Normal file
26
Task/Keyboard-macros/PureBasic/keyboard-macros.purebasic
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#Win = 0
|
||||
#Demo1 = 0
|
||||
#Demo2 = 1
|
||||
|
||||
If OpenWindow(#Win,50,50,200,60,"PureBasic",#PB_Window_SystemMenu)
|
||||
;
|
||||
AddKeyboardShortcut(#Win,#PB_Shortcut_F1, #Demo1)
|
||||
AddKeyboardShortcut(#Win,#PB_Shortcut_F|#PB_Shortcut_Alt, #Demo2)
|
||||
;
|
||||
Repeat
|
||||
WEvent = WaitWindowEvent()
|
||||
Select WEvent
|
||||
Case #PB_Event_Menu
|
||||
Select EventMenu()
|
||||
Case #Demo1
|
||||
MessageRequester("Info", "You Pressed F1")
|
||||
|
||||
Case #Demo2
|
||||
MessageRequester("Info", "You Pressed Alt-F")
|
||||
|
||||
EndSelect
|
||||
Case #PB_Event_CloseWindow
|
||||
Break
|
||||
EndSelect
|
||||
ForEver
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue