ahkassign


ahkassign is used to assign a string to a variable in script.

Success:=DllCall(dll_path "\ahkassign","Str","variable","Str",value)

Parameters

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.

Return Value

Return value is 0 on success and -1 on failure.

Remarks

ahkassign will create the variable if it does not exist.

Related

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

Example

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