Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3 Topic is solved
Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3
I want it to repeat constantly until i press F3 and start with F5
-
- Posts: 42
- Joined: 25 Apr 2018, 03:03
Re: Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3 Topic is solved
Mornin'.
You can try this:
You can try this:
Code: Select all
F5::
Loop
{
Send /{!}rtv
if GetKeyState("F3", "P")
break
}
return
Re: Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3
Generally, having a loop in hotkey isn't the best idea. Following also allows you to extend the script by any number of things you want to send without duplicating code.
Code: Select all
SendMode, Input
to_repeat := ["/!rtv", "/!revoke"]
return
F5::SetTimer, repeat, ON
F3::SetTimer, repeat, OFF
repeat:
loop % to_repeat.length()
{
send % "{raw}" to_repeat[A_Index]
sleep 1000
}
return
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Re: Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3
i think SirRFI has nailed it!Click on ✔ (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
Who is online
Users browsing this forum: Google [Bot] and 54 guests