Exemple #1
0
 def hotkeys():
     import ahkpy as ahk
     import sys
     ahk.hotkey("F24", sys.exit)
     ahk.hotkey("F14", lambda: ahk.message_box("F14 pressed"))
     ahk.hotkey("F15", lambda: ahk.message_box("F15 pressed"))
     print("ok00")
Exemple #2
0
 def _print_message(self, message, file=None):
     if message:
         if file is None:
             file = sys.stderr
         if file is None:
             ahk.message_box(message)
             return
         file.write(message)
 def msg_boxes_code():
     import ahkpy as ahk
     ahk.message_box()
     ahk.message_box("Hello, мир!")
     ahk.message_box("Hello, 世界")
     ahk.message_box("Do you want to continue? (Press YES or NO)",
                     buttons="yes_no")
 def code():
     import ahkpy as ahk
     import sys
     ahk.hotkey("F24", sys.exit)
     ahk.message_box("Hello from AutoHotkey.py", title="AutoHotkey")
        def window():
            import ahkpy as ahk
            import sys

            ahk.hotkey("F24", sys.exit)
            ahk.message_box("win1", title="ahkpy win1")
 def show_msgbox():
     ahk.message_box("Hello from hotkey.")
Exemple #7
0
 def code():
     import ahkpy as ahk
     import sys
     ahk.hotkey("F24", sys.exit)
     ahk.hotkey("F13", ahk.restart)
     ahk.message_box("ok00")