ahkReload


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")

Parameters

No parameters

No parameters

Return Value

Returns always 0 for success.

Remarks

ahkReload will destroy hotkeys and hotstrings, exit thread and start it again using same parameters/file/text.

Related

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

Example

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