Other Changes


Differences to AutoHotkey_L.exe and other changes.

General Changes

Parameters

Change

Info

#NoEnv

this is now default, use #NoEnv, Off to enable use of Environment variables.

Sleep in Send

Send {100}a{100}b including integer higher than 9 in brackets will do a sleep between sending keystrokes

SendMode Input

this is now default SendMode, use SendMode,... to change.

A_DllPath

Build in variable that contains the path of running dll.

StdLib

additionally Lib.lnk (a link to library folder) can be present in AutoHotkey.exe directory.

Input

added support for Multithreading.
Added A option to append input to the variable (so variable will not be set empty before input starts)

Compile exe or dll

in AutoHotkey_H any bin/exe/dll can be compiled. Modified Ahk2Exe can be found here: https://github.com/HotKeyIt/Ahk2Exe

/E switch

Compiled exe and dll can stil execute scripts.
Run myexe.exe /E myscript.ahk
dll.ahkdll("myscript.ahk","","/E")
dll.ahktextdll("MsgBox","","/E")

Return Value

None.

Remarks

None.

Related

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

Example

;MultiThreaded Input example
SetWorkingDir % A_ScriptDir
dll:=AhkDllThread("AutoHotkey.dll")
dll.ahktextdll("Alias(V," GetVar(V) ")`nLoop`nToolTip % V")
MsgBox Press OK and start typing`nPress Escape to exit
Input,V,,{Escape}
MsgBox You typed %V%
ExitApp

;----------------------------------------------------------
;Without AutoHotkey.dll (using AutoHotkey_H.exe only)
SetTimer,ToolTip,50
Input,V,,{Escape}
ExitApp
ToolTip:
ToolTip % V
Return