WoW: Combining "AutoFire", doubletap+toggle, keywait, and modifier keys

Ask gaming related questions (AHK v1.1 and older)
ZeroFawkes
Posts: 2
Joined: 16 Feb 2018, 10:07

WoW: Combining "AutoFire", doubletap+toggle, keywait, and modifier keys

16 Feb 2018, 10:23

Below is the script I've been using to spam keys while held down with a keywait function to not impede normal typing in World of Warcraft. This is my very amateur effort at combining two other scripts I found searching through here. The problem is holding a modifier key (shift, alt, ctrl) does not work. I would also love it if I could double tap a key to activate a toggle hook to spam until pressed again. The examples I've found here are beyond my comprehension at the moment. I'm sure given enough reading I could figure out a hack job of someone elses code, but I'm a busy/lazy man and want to know if its even possible. Another concern is the level of automation; would this result in a ban even though I will be at the keyboard the entire time? Any help/comments are appreciated, even if its a disparaging remark.

Code: Select all

#ifWinActive World of Warcraft
{
$q::
    KeyWait q, T0.05                 ; Wait fraction of a second for user to release "q" key
    If ErrorLevel                   ; Still held down
        While GetKeyState("q","p"){ ; While it is held down
            Send q
            Sleep 40
        }
    Else                            ; They let go in time
        Send q
return
$e::
    KeyWait e, T0.05                 ; Wait fraction of a second for user to release "e" key
    If ErrorLevel                   ; Still held down
        While GetKeyState("e","p"){ ; While it is held down
            Send e
            Sleep 40
        }
    Else                            ; They let go in time
        Send e
return
$1::
    KeyWait 1, T0.05                 ; Wait fraction of a second for user to release "1" key
    If ErrorLevel                   ; Still held down
        While GetKeyState("1","p"){ ; While it is held down
            Send 1
            Sleep 40
        }
    Else                            ; They let go in time
        Send 1
return
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 81 guests