Code: Select all
\::
Send, {o down}
return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Code: Select all
\::
Send, {o down}
return
Code: Select all
DC 02B d 38.19 \ CodeQuickTester*
4F 018 i d 0.00 o
DC 02B u 0.11 \
Try:Some programs or games might require a key to be sent repeatedly (as though you are holding it down on the keyboard)
Code: Select all
\::Repeat("o", 30) ; a Timer sends {Blind}{o Down} every 30 ms
q::Repeat("o") ; deletes the Timer and sends {Blind}{o Up}
Repeat(Key, Period:=0) {
Static Repeat := {}
Repeat[Key] ?: Repeat[Key] := Func("KeyDown").Bind(Key)
Timer := Repeat[Key]
SetTimer,% Timer,% Period ? Period : "Delete"
SendInput,% Period?"":"{Blind}{" Key " Up}" Repeat[Key]:=""
} KeyDown(Key) {
SendInput, {Blind}{%Key% Down}
}