Hello, im using AHK to spam my buttons in World of Warcraft while holding them down instead of spam pressing. Is there a way to make it pause or stop the script with another button? Its hard to type ingame when the script is running.
[Mod action: Moved topic to the Gaming section.]
Need help making a pause button.
Re: Need help making a pause button.
It sounds like you just want a hotkey to suspend your other hotkeys (and press again to toggle them back on again). Try this:
Code: Select all
F1::Suspend
Re: Need help making a pause button.
That does change the AHK icon to [| |} but it doesnt stop the spam. Im using this script for each button i want to be spammed.
Code: Select all
#HotIf WinActive("World of Warcraft")
$f:: {
while GetKeyState("f", "P")
{
Send("f")
Sleep(Random(75, 150))
}
}
#HotIf
Re: Need help making a pause button.
Thanks, that does work but is there a way to make it resume?
Re: Need help making a pause button.
I'm not following your last two posts as they seem to be in conflict with each other. For the line that I posted, you use the same hotkey to toggle hotkeys on and off. You can make a hotkey with Pause instead of resume to pause execution, as opposed to suspending hotkeys.
Re: Need help making a pause button.
Yeah im sorry about the first post, i couldnt edit it. Suspend function works but it only turns it off, pressing it again does nothing. Tried using Pause but it does nothing, AHK is still spamming the button when im holding it.
Re: Need help making a pause button.
Sorry. I was caught in old v1 thinking. Do this:
Code: Select all
#SuspendExempt
F1::Suspend
#SuspendExempt False
Re: Need help making a pause button.
Lovely, thank you so much!
Who is online
Users browsing this forum: No registered users and 9 guests