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 (AHK v1.1 and older)
Louis Tully
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

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

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: 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.
Rangerbot
Posts: 31
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

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:

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 54 guests