ahkReload is used to stop and exit a running script in dll. ( Available in AutoHotkey[Mini].dll only, not in AutoHotkey_H.exe )
DllCall(dll_path "\ahkReload")
| No parameters | No parameters |
ahkReload will destroy hotkeys and hotstrings, exit thread and start it again using same parameters/file/text.
AutoHotkey.dll, ahkdll, ahktextdll, ahkReady, addFile, addScript, ahkExec, ahkLabel, ahkFunction, ahkPostFunction, ahkassign, ahkgetvar, ahkTerminate, ahkFindFunc, ahkFindLabel, ahkPause, ahkExecuteLine, Alias, cacheEnable, FindFunc, FindLabel, getTokenValue, getVar, Static, AutoHotkeyMini, DynaCall, CriticalSection, CriticalObject, MemoryLoadLibrary, ResourceLoadLibrary, MemoryGetProcAddress, MemoryFreeLibrary, Other Changes
AhkDll:=AhkDllObject("AutoHotkey.dll")
AhkDll.ahktextdll("Persistent`nSleep, 500`nSplashTextOn,130,20, From AutoHotkey.dll,Hello World!")
MsgBox Press Ok to reload Thread
ahkdll.ahkReload()
MsgBox Thread was reloaded