ahkassign is used to assign a string to a variable in script.
Success:=DllCall(dll_path "\ahkassign","Str","variable","Str",value)
| Parameter | Description |
| ReturnValue | returns 0 on success and -1 on failure. |
| variable | name of variable to save value in. |
| value | value to be saved in variable, can be sting/text only. |
ahkassign will create the variable if it does not exist.
AutoHotkey.dll, ahkdll, ahktextdll, ahkReady, addFile, addScript, ahkExec, ahkLabel, ahkFunction, ahkPostFunction, ahkgetvar, ahkTerminate, ahkReload, 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() ;start empty thread, in this mode #Persistent and #NoTrayIcon will be default
ahkdll.ahkassign.a:="test"
MsgBox % ahkdll.ahkgetvar.a