Post by Flipeador » 08 Jan 2016, 09:19
Hola,
Usa
SetTimer.
Ejemplo, preciona F3 para activar, y F3 de nuevo para desactivar:
Code: Select all
F1::Hideout()
F2::Remaining()
F3::SetTimer, Repeat, % Repeat=1000?Repeat:="Off":Repeat:=1000
Hideout() {
BlockInput, On
SendInput, {Enter}/hideout{Enter}
BlockInput, Off
}
Remaining() {
BlockInput, On
SendInput, {Enter}/remaining{Enter}
BlockInput, Off
}
Repeat() {
SendInput, {r}
Sleep, 1000
}
Hola,
Usa [c]SetTimer[/c].
Ejemplo, preciona F3 para activar, y F3 de nuevo para desactivar:
[code=autohotkey file=Untitled.ahk]F1::Hideout()
F2::Remaining()
F3::SetTimer, Repeat, % Repeat=1000?Repeat:="Off":Repeat:=1000
Hideout() {
BlockInput, On
SendInput, {Enter}/hideout{Enter}
BlockInput, Off
}
Remaining() {
BlockInput, On
SendInput, {Enter}/remaining{Enter}
BlockInput, Off
}
Repeat() {
SendInput, {r}
Sleep, 1000
}[/code]