Close
Showing results 1 to 8 of 8

Threaded View

  1. #8

    Default

    You can change clonepush to this
    Code:
    clonepush(strkey)
    {
    global winid
    Loop %winid% 
        {
        tmp:=winid%A_Index%
        IfWinNotActive, ahk_id %tmp%
            ControlSend, ,%strkey%, ahk_id %tmp%
        }
    }
    just change "winid" to whatever yeh use in
    WinGet, WowWinId, List, World of Warcraft
    the bold part needs to be the same

    It'll work for any amount of wows

    here another piece that yeh might find intersting

    Code:
    ;*****************
    ; spread out
    ;*****************
    
    move(strkey)
    {
    ; group of 5 one will stay stationary while the rest move around
    global winid
    move1="{a %strkey%}{w %strkey%}"
    move2="{d %strkey%}{w %strkey%}"
    move3="{a %strkey%}{s %strkey%}"
    move4="{d %strkey%}{s %strkey%}"
    
    tmp1:=0
    loop %winid%
        {
        ifwinactive % "Ahk_ID " winid%A_Index%
            continue
        tmp1++
        tmp:=windid%A_Index%
        key:=move%tmp1%
        ControlSend, ,%key%, ahk_id %A_Index%
        }
    }
    
    ~\::
    move("UP")
    KeyWait \
    move("DOWN")
    return
    A really simple setup would be
    Code:
    clonepush(strkey)
    {
    global winid
    Loop %winid% 
        {
        tmp:=winid%A_Index%
        IfWinNotActive, ahk_id %tmp%
            ControlSend, ,%strkey%, ahk_id %tmp%
        }
    }
    
    WinGet, winid, List, World of Warcraft 
    
    #IfWinActive, World of Warcraft
    ; *******************
    ; *** Hotbars 1-0 ***
    ; *******************
    ~1::clonepush("{1 down}{1 up}")
    ~2::clonepush("{2 down}{2 up}")
    ~3::clonepush("{3 down}{3 up}")
    ~4::clonepush("{4 down}{4 up}")
    ~5::clonepush("{5 down}{5 up}")
    ~6::clonepush("{6 down}{6 up}")
    ~7::clonepush("{7 down}{7 up}")
    ~8::clonepush("{8 down}{8 up}")
    ~9::clonepush("{9 down}{9 up}")
    ~0::clonepush("{0 down}{0 up}")
    ~-::clonepush("{- down}{- up}")
    ~=::clonepush("{= down}{= up}")
    Last edited by wowphreak : 11-03-2009 at 10:00 PM

Posting Rules

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