

Currently, there is limited support for interacting with windows in actionchains, you may want to use win_set) find_window/find_windows methods ¶ Just like anywhere else, scripts running simultaneously may conflict with one another, so using blocking interfaces is perform () # *now* each of the actions run in order sleep ( 1 ) # still nothing happening ac. mouse_move ( 100, 100, speed = 10 ) # nothing yet ac. maximize () Screen ¶įrom ahk import ActionChain ac = ActionChain () # An Action Chain doesn't perform the actions until perform() is called on the chain ac. active : # Check if window active window. rect ) # (x, y, width, height) print ( window. title ) # Some more attributes print ( window.

always_on_top = True # Make the window always on top for window in ahk. to_bottom () # Move the window to the bottom of the other windows win. to_top () # Move the window on top of other windows win. disable () # Make the window non-interactable win. activate_bottom () # Give the window focus win. send ( 'hello' ) # Send keys directly to the window (does not need focus!) win. find_window ( title = b 'Untitled - Notepad' ) # Find the opened window win. run_script ( 'Run Notepad' ) # Open notepad win = ahk. Work on AutoHotkey.From ahk import AHK ahk = AHK () ahk.

It does so byĮmbedding a Python DLL into the AutoHotkey process. DescriptionĪutoHotkey.py provides a user-friendly API that lets the user write hotkeys andĪutomation scripts in Python harnessing the power of AutoHotkey.
