Code: Select all
if (StrLen(HK)=1) {
Hotkey, %HK%, Label1, On
savedHK := HK
}
This code also stops many other keys from working - F1, Space etc
Code: Select all
if (StrLen(HK)=1) {
Hotkey, %HK%, Label1, On
savedHK := HK
}
Code: Select all
x1 := 5
x2 := 4
x3 := 3
x4 := 2
x5 := -1
lowestNum := 9999999999999
lowestIndex := 0
Loop 5 {
if (Abs(x%A_Index%) < Abs(lowestNum)){
lowestNum := x%A_index%
lowestIndex := A_Index
}
}
msgbox % "Lowest Num: " lowestNum "`nLowest Index: " lowestIndex
Code: Select all
#IfWinActive ahk_class Chrome_WidgetWin_1
WheelUp::Send ^{+}
WheelDown::Send ^{-}