Here are the changes:
Changed SendInput to use "SetKeyDelay -1, 0" when it reverts to SendEvent
mode (unless SendEvent's KeyDelay "-1,-1", in which case "-1,-1" is used).
Added directive #NoEnv, which is recommended for all new scripts because:
- It significantly improves performance whenever empty variables are used in
an expression or command. It also improves DllCall's performance when
unquoted parameter types are used (e.g. int vs. "int").
- It prevents script bugs caused by environment variables whose names
unexpectedly match variables used by the script.
- A future version of AutoHotkey such as 1.1 might force this behavior into
effect for all scripts (though such a change is not expected for at least a
year).
Added built-in variables ComSpec and ProgramFiles to ease the transition to
#NoEnv.
Added command EnvGet, which retrieves an environment variable.
Download it at http://www.autohotkey.com/download/