[ahk]将Python和AutoHot

2023-01-31 02:01:26 python ahk AutoHot

Http://www.autohoTKEy.com/forum/topic53773.html

Q:I am searching for is a way to execute AHK commands from a python script. Is this possible?

A:Yes. Here is an example. 

tested with Python2.6, requires AutoHotkey.dll in the working directory or path... 

ahkpython.ahk:

 

ahkpython.py

 

remarks: 
create_string_buffer is required because autohotkey.dll exported functions do not work with unicode. 
See HotkeyIt's excellent chm help file for documentation on the functions.

相关文章