Close
Showing results 1 to 3 of 3
  1. #1

    Default autohotkey with autoshoot (wow classic)

    For some reason when I use my wand button with autohotkey, it wont go to the 2nd client or more. I have to add it to a different button and hit that button right after.

    I'd love to play a bunch of warlocks and/or priests, but this problem is very persistent and I am having a hard time adjusting when the script is not working correctly.

    Would anyone have any suggestions as to what I should do or possible scripts/new program to use?

    Thank you.

  2. #2
    Member Ughmahedhurtz's Avatar
    Join Date
    Jul 2007
    Location
    North of The Wall, South of The Line
    Posts
    6979

    Default

    If you posted your AHK script that does the wand thing, folks will be better able to help point out errors/omissions.
    Now playing: WoW (Garona)

  3. #3

    Default

    Quote Originally Posted by Ughmahedhurtz View Post
    If you posted your AHK script that does the wand thing, folks will be better able to help point out errors/omissions.
    haha! Certainly would!! Generally I'd put it on button 3 (for example). First client would be fine, 2nd client would ignore the button press so I'd have to put the wand attack on button 2 (for example).

    I don't see the problem with the coding and such, would it maybe be due to only running 2 clients?


    Code:
    WinGet, wowid, List, World of Warcraft 
    
    
    ~1:: 
    KeyWait 1
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 1, ahk_id %wowid1% 
    ControlSend,, 1, ahk_id %wowid2% 
    ControlSend,, 1, ahk_id %wowid3%
    ControlSend,, 1, ahk_id %wowid4%
    ControlSend,, 1, ahk_id %wowid5% 
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~2:: 
    KeyWait 2 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 2, ahk_id %wowid1% 
    ControlSend,, 2, ahk_id %wowid2% 
    ControlSend,, 2, ahk_id %wowid3%
    ControlSend,, 2, ahk_id %wowid4%
    ControlSend,, 2, ahk_id %wowid5%
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~T:: 
    KeyWait T 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, T, ahk_id %wowid1% 
    ControlSend,, T, ahk_id %wowid2% 
    ControlSend,, T, ahk_id %wowid3%
    ControlSend,, T, ahk_id %wowid4%
    ControlSend,, T, ahk_id %wowid5%
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~3:: 
    KeyWait 3 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 3, ahk_id %wowid1% 
    ControlSend,, 3, ahk_id %wowid2% 
    ControlSend,, 3, ahk_id %wowid3% 
    ControlSend,, 3, ahk_id %wowid4% 
    ControlSend,, 3, ahk_id %wowid5% 
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~4:: 
    KeyWait 4 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 4, ahk_id %wowid1% 
    ControlSend,, 4, ahk_id %wowid2% 
    ControlSend,, 4, ahk_id %wowid3%
    ControlSend,, 4, ahk_id %wowid4%
    ControlSend,, 4, ahk_id %wowid5% 
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~5:: 
    KeyWait 5 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 5, ahk_id %wowid1% 
    ControlSend,, 5, ahk_id %wowid2% 
    ControlSend,, 5, ahk_id %wowid3% 
    ControlSend,, 5, ahk_id %wowid4%
    ControlSend,, 5, ahk_id %wowid5%
    Return 
    }
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~6:: 
    KeyWait 6 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, 6, ahk_id %wowid1% 
    ControlSend,, 6, ahk_id %wowid2% 
    ControlSend,, 6, ahk_id %wowid3%
    ControlSend,, 6, ahk_id %wowid4%
    ControlSend,, 6, ahk_id %wowid5%
    Return 
    }
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    7:: 
    KeyWait, 7, D 
    ControlSend,, {7}, ahk_id %wowid1% 
    ControlSend,, {7}, ahk_id %wowid2% 
    ControlSend,, {7}, ahk_id %wowid3% 
    ControlSend,, {7}, ahk_id %wowid4%
    ControlSend,, {7}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    8:: 
    KeyWait, 8, D 
    ControlSend,, {8}, ahk_id %wowid1% 
    ControlSend,, {8}, ahk_id %wowid2% 
    ControlSend,, {8}, ahk_id %wowid3%
    ControlSend,, {8}, ahk_id %wowid4%
    ControlSend,, {8}, ahk_id %wowid5% 
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    9:: 
    KeyWait, 9, D 
    ControlSend,, {9}, ahk_id %wowid1% 
    ControlSend,, {9}, ahk_id %wowid2% 
    ControlSend,, {9}, ahk_id %wowid3% 
    ControlSend,, {9}, ahk_id %wowid4%
    ControlSend,, {9}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    0:: 
    KeyWait, 0, D 
    ControlSend,, {0}, ahk_id %wowid1% 
    ControlSend,, {0}, ahk_id %wowid2% 
    ControlSend,, {0}, ahk_id %wowid3% 
    ControlSend,, {0}, ahk_id %wowid4%
    ControlSend,, {0}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    ~=:: 
    KeyWait = 
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, =, ahk_id %wowid1% 
    ControlSend,, =, ahk_id %wowid2%
    ControlSend,, =, ahk_id %wowid3%
    ControlSend,, =, ahk_id %wowid4%
    ControlSend,, =, ahk_id %wowid5%
    Return 
    }
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    -:: 
    KeyWait, -, D 
    ControlSend,, {-}, ahk_id %wowid1% 
    ControlSend,, {-}, ahk_id %wowid2% 
    ControlSend,, {-}, ahk_id %wowid3%
    ControlSend,, {-}, ahk_id %wowid4%
    ControlSend,, {-}, ahk_id %wowid5% 
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    Space:: 
    KeyWait, Space, D 
    ControlSend,, {Space}, ahk_id %wowid1% 
    ControlSend,, {Space}, ahk_id %wowid2% 
    ControlSend,, {Space}, ahk_id %wowid3% 
    ControlSend,, {Space}, ahk_id %wowid4%
    ControlSend,, {Space}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    x:: 
    KeyWait, x, D 
    ControlSend,, {x}, ahk_id %wowid1% 
    ControlSend,, {x}, ahk_id %wowid2% 
    ControlSend,, {x}, ahk_id %wowid3% 
    ControlSend,, {x}, ahk_id %wowid4%
    ControlSend,, {x}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    Tab:: 
    KeyWait, Tab, D 
    ControlSend,, {Tab}, ahk_id %wowid1% 
    ControlSend,, {Tab}, ahk_id %wowid2% 
    ControlSend,, {Tab}, ahk_id %wowid3%
    ControlSend,, {Tab}, ahk_id %wowid4%
    ControlSend,, {Tab}, ahk_id %wowid5% 
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    Shift:: 
    KeyWait, Shift, D 
    ControlSend,, {Shift}, ahk_id %wowid1% 
    ControlSend,, {Shift}, ahk_id %wowid2% 
    ControlSend,, {Shift}, ahk_id %wowid3% 
    ControlSend,, {Shift}, ahk_id %wowid4%
    ControlSend,, {Shift}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, List, World of Warcraft 
    
    
    NumPad2:: 
    KeyWait, NumPad2, D 
    ControlSend,, {NumPad2}, ahk_id %wowid1% 
    ControlSend,, {NumPad2}, ahk_id %wowid2% 
    ControlSend,, {NumPad2}, ahk_id %wowid3% 
    ControlSend,, {NumPad2}, ahk_id %wowid4%
    ControlSend,, {NumPad2}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad3:: 
    KeyWait, NumPad3, D 
    ControlSend,, {NumPad3}, ahk_id %wowid1% 
    ControlSend,, {NumPad3}, ahk_id %wowid2% 
    ControlSend,, {NumPad3}, ahk_id %wowid3% 
    ControlSend,, {NumPad3}, ahk_id %wowid4%
    ControlSend,, {NumPad3}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad4:: 
    KeyWait, NumPad4, D 
    ControlSend,, {NumPad4}, ahk_id %wowid1% 
    ControlSend,, {NumPad4}, ahk_id %wowid2% 
    ControlSend,, {NumPad4}, ahk_id %wowid3% 
    ControlSend,, {NumPad4}, ahk_id %wowid4%
    ControlSend,, {NumPad4}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad5:: 
    KeyWait, NumPad5, D 
    ControlSend,, {NumPad5}, ahk_id %wowid1% 
    ControlSend,, {NumPad5}, ahk_id %wowid2% 
    ControlSend,, {NumPad5}, ahk_id %wowid3% 
    ControlSend,, {NumPad5}, ahk_id %wowid4%
    ControlSend,, {NumPad5}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad6:: 
    KeyWait, NumPad6, D 
    ControlSend,, {NumPad6}, ahk_id %wowid1% 
    ControlSend,, {NumPad6}, ahk_id %wowid2% 
    ControlSend,, {NumPad6}, ahk_id %wowid3% 
    ControlSend,, {NumPad6}, ahk_id %wowid4%
    ControlSend,, {NumPad6}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad7:: 
    KeyWait, NumPad7, D 
    ControlSend,, {NumPad7}, ahk_id %wowid1% 
    ControlSend,, {NumPad7}, ahk_id %wowid2% 
    ControlSend,, {NumPad7}, ahk_id %wowid3% 
    ControlSend,, {NumPad7}, ahk_id %wowid4%
    ControlSend,, {NumPad7}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad8:: 
    KeyWait, NumPad8, D 
    ControlSend,, {NumPad8}, ahk_id %wowid1% 
    ControlSend,, {NumPad8}, ahk_id %wowid2% 
    ControlSend,, {NumPad8}, ahk_id %wowid3% 
    ControlSend,, {NumPad8}, ahk_id %wowid4%
    ControlSend,, {NumPad8}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    NumPad9:: 
    KeyWait, NumPad9, D 
    ControlSend,, {NumPad9}, ahk_id %wowid1% 
    ControlSend,, {NumPad9}, ahk_id %wowid2% 
    ControlSend,, {NumPad9}, ahk_id %wowid3% 
    ControlSend,, {NumPad9}, ahk_id %wowid4%
    ControlSend,, {NumPad9}, ahk_id %wowid5%
    Return
    
    
    WinGet, wowid, list, World of Warcraft 
    
    
    y:: 
    KeyWait, LButton, D 
    ControlSend,, {y}, ahk_id %wowid1% 
    ControlSend,, {y}, ahk_id %wowid2% 
    ControlSend,, {y}, ahk_id %wowid3% 
    ControlSend,, {y}, ahk_id %wowid4%
    ControlSend,, {y}, ahk_id %wowid5%
    Return
    
    
    ~h::
    KeyWait, h, D
    #IfWinActive, World of Warcraft
    {
    ControlSend,, h, ahk_id %wowid1%
    ControlSend,, h, ahk_id %wowid2%
    ControlSend,, h, ahk_id %wowid3%
    ControlSend,, h, ahk_id %wowid4%
    ControlSend,, h, ahk_id %wowid5%
    }
    Return
    Last edited by MiRai : 06-15-2019 at 09:07 AM Reason: [CODE] Tags

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •