We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23139b7 commit c7c20bcCopy full SHA for c7c20bc
docs/README.md
@@ -442,8 +442,25 @@ code is safe.
442
443
## Run arbitrary AutoHotkey scripts
444
445
-TBD
+You can also run arbitrary AutoHotkey code either as a `.ahk` script file or as a string containing AHK code.
446
447
+```python
448
+from ahk import AHK
449
+ahk = AHK()
450
+my_script = '''\
451
+MouseMove, 100, 100
452
+; etc...
453
+'''
454
+
455
+ahk.run_script(my_script)
456
+```
457
458
459
460
461
+script_path = r'C:\Path\To\myscript.ahk'
462
+ahk.run_script(script_path)
463
464
465
466
<a name="deps" />
0 commit comments