ahkReady


ahkReady is used to check if a dll script is running or not. ( Available in AutoHotkey[Mini].dll only, not in AutoHotkey_H.exe)

ThreadIsRunning:=DllCall(dll_path "\ahkReady")

Parameters

Parameter

Description

ThreadIsRunning

ahkReady() returns 1 if a thread is running or 0 otherwise.

Return Value

1 or 0.

Remarks

None.

Related

AutoHotkey.dll, ahkdll, ahktextdll, addFile, addScript, ahkExec, ahkLabel, ahkFunction, ahkPostFunction, ahkassign, ahkgetvar, ahkTerminate, ahkReload, ahkFindFunc, ahkFindLabel, ahkPause, ahkExecuteLine, Alias, cacheEnable, FindFunc, FindLabel, getTokenValue, getVar, Static, AutoHotkeyMini, DynaCall, CriticalSection, CriticalObject, MemoryLoadLibrary, ResourceLoadLibrary, MemoryGetProcAddress, MemoryFreeLibrary, Other Changes

Example

AhkDll:=AhkDllObject("AutoHotkey.dll")
AhkDll.ahktextdll("MsgBox MsgBox from AutoHotkey.dll")
While !ahkDll.ahkReady() ;wait for the script to be ready
Sleep 10
While AhkDll.ahkReady() ;wait for the dll to finish running its script
Sleep, 100
MsgBox Thread finished`nExiting now