Problem with a script that spam a button on holding down.

Ask gaming related questions
nillx
Posts: 6
Joined: 10 Jan 2024, 12:07

Problem with a script that spam a button on holding down.

17 Jan 2024, 13:37

Hello, im using this script to spam specific buttons in WoW while holding down the button (My wrists hurt from constantly spamming buttons) but sometimes it keeps spamming the button (even without me holding the button) and ignore any other key presses until i press that button again. Is there a problem with the script or there is another issue?

Code: Select all

#HotIf WinActive("World of Warcraft")
$t:: {
    while GetKeyState("t", "P")
    {
        Send("t")
        Sleep(Random(75, 150))
    }
}
#HotIf

#SuspendExempt
F12::Suspend
#SuspendExempt False
User avatar
Noitalommi_2
Posts: 309
Joined: 16 Aug 2023, 10:58

Re: Problem with a script that spam a button on holding down.

17 Jan 2024, 18:08

Hi.

There's nothing wrong with your code, maybe a different send method or a higher delay helps.

Code: Select all

#HotIf WinActive("World of Warcraft")
$t:: {

	while GetKeyState("t", "P") {

		SetKeyDelay(Random(100, 250),Random(75, 150))
        SendEvent("{t}")
    }
}
#HotIf

#SuspendExempt
F12::Suspend
#SuspendExempt False

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 6 guests