Esempio n. 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")
Esempio n. 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)
Esempio n. 3
0
 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")
Esempio n. 4
0
 def code():
     import ahkpy as ahk
     import sys
     ahk.hotkey("F24", sys.exit)
     ahk.message_box("Hello from AutoHotkey.py", title="AutoHotkey")
Esempio n. 5
0
        def window():
            import ahkpy as ahk
            import sys

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