AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.
AHK is simple enough for me, an non-programmer, to program in however their GUIs are very tricky. I wrote an AutoHotKey menu builder to help automate the building of them. This can save a lot of time when trying to build menus.
Just remember that sub-menus need to be placed above their parents! This always confused me because I wanted to put them below their parent’s . You can also review this video which helps educate you on some of the built in features of AHK to control GUI placement
Debugging can be very time consuming. If you’re using SciTE with AutoHotKey, there is built-in functionality that is very helpful. This video walks through some of the cool debugging features in SciTE. I also have a second debugging with SciTE video that you should check out after watching this one.
Make sure you take the time to review both videos! I guarantee it will increase your speed of developing code and trouble-shooting issues!
#SingleInstance, Force
#NoEnv
Var:=0
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var%
GoSub Looper
MsgBox end of program
return
;***********************First loop********************************.
Looper:
loop, 15
{
var:=Var+A_Index
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var%
var:=Var+10
GoSub SubLooper
}
return
;***********************Sub loop********************************.
SubLooper:
Loop, 3
{
SubLooperVar:=A_Index
OutputDebug Line %A_LineNumber%: A_Index is: %A_Index% and Var is: %Var% and Sublooper index is: %SubLooperVar%
}
return