Copy the entire contents of Lib into a function library folder. Preferably in the user library: %A_MyDocuments%\AutoHotkey\Lib\\
- AutoHotkey v2.0-a online documentation
- Changes from v1.1 to v2.0
- If the command's first parameter is an output variable and the second parameter is not, it becomes the return value. Otherwise,
RunWait
andSendMessage
return the value ofErrorLevel
, and any other commands which set ErrorLevel return 1 on success and 0 on failure.ErrorLevel
is still set as usual. - The remaining output variables are handled like
ByRef
parameters, except that an exception is thrown if the function is called incorrectly. Passing an empty string is equivalent to omitting the parameter, but any other value (which is not a variable reference) is not allowed.
ListVars()
can only list global variables.FileInstall()
will only perform aFileCopy
.Gui("Add", ...)
- the control's associated variable must be global. Declaring as static is currently impossible.GuiControl()
andGuiControlGet()
can only operate on global variables(control's associated variable). UseControlHwnd
orClassNN
instead if needed.FixWinSetXXX()
return values. Inv2.0-a
,ErrorLevel
is returned. However, most ofWinSet
sub-commands inv1.1
do not useErrorLevel
. PerhapsErrorLevel
can be determined usingA_LastError
.- In v2,
Func("MenuSelect").MinParams
returns0
. However when called using command syntax, an error is thrown when a required parameter is omitted. There are probably other commands/functions that behave like this. Best to check usingFunc
object properties. Random()
limitation -> how to mimicRandom,, NewSeed
?- This is just a rush job, perform proper tests.
- Improve this README.