Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3 Topic is solved

Ask gaming related questions
yeetererere

Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3

Post by yeetererere » 19 May 2018, 19:22

I want it to repeat constantly until i press F3 and start with F5
Louis Tully
Posts: 31
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

Post by Louis Tully » 20 May 2018, 01:52

Mornin'.

You can try this:

Code: Select all

F5::

Loop

{
	Send /{!}rtv
	if GetKeyState("F3", "P") 
        break  
}

return
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3

Post by SirRFI » 20 May 2018, 03:05

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=autohotkey] forum tag to share your code.
Click on (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
Rangerbot
Posts: 34
Joined: 02 Mar 2018, 10:33

Re: Can you make me a repeating script that repeats /!rtv and /!revoke in that order with F5 and stop with F3

Post by Rangerbot » 21 May 2018, 10:47

Click on ✔ (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
i think SirRFI has nailed it! :beer:
Post Reply

Return to “Gaming”