I'm using python with the AuthoHotey.dll,I don't know if this function don't exist in the dll or I have a error
Sorry for my english
Code: Select all
from ctypes import *
import time
ahk = cdll.AutoHotkey #load AutoHotkey
ahk.ahktextdll("") #start script in persistent mode (wait for action)
while not ahk.ahkReady(): #wait for AutoHotkey to start
time.sleep(0.01) #Sleep 100
code = """
ventana()
{
IfWinActive, prueba.ahk - SciTE4AutoHotkey [2 of 2]
{
MsgBox, 0, ,
(LTrim
KKIKSS
)
}
}
"""
ahk.addScript(code) #add script to AutoHotkey
ahk.ahkFunction(u"ventana")