ahkExecuteLine


ahkExecuteLine is used to execute the script from previously added line via addScript or addFile.

pointerNextLine := DllCall(dll_path "\ahkExecuteLine"[,"UPTR",pointerLine,"UInt",mode,"Uint",wait],"Cdecl UPTR")

Parameters

Parameter

Description

pointerNextLine

a pointer to next line. When no line pointer is passed, it returns a pointer to FirstLine.

pointerLine

a pointer to the line to be executed.

mode

0 = will not execute but return a pointer to next line.
1 = UNTIL_RETURN
2 = UNTIL_BLOCK_END
3 = ONLY_ONE_LINE

wait

set 1 to wait until the execution finished (be careful as it may happen that the dll call never return!

Return Value

Cdecl UInt - if no pointerLine is passed it returns a pointer to FirstLine, else it returns a pointer to NextLine.

Remarks

addFile and addScript return a line pointer, so you can add one or more lines of script and launch them without having a Label to it.
A_LineFile contains the full file path of currently running script (ahkdll + addFile) or the script in text form (ahktextdll or addScript).
Functions are skipped so you recive the pointer to line after function.

Related

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

Example

; None.