Close
Showing results 1 to 3 of 3

Hybrid View

  1. #1

    Default Need help passing mouse clicks

    I tried asking on the AHK forum and all i could get was "you're doing this wrong" responses, which were things I had already done anyway, and did not help me solve my problem. My guess is none of em knew how to do it.
    Anyway, im trying to send mouse clicks to all 3 of my WoW windows, namely (atm) my Mouse Button 5 (also known as Xbutton2 or the Fwd button in a browser)
    this is my script so far
    Code:
    ClonesPush(strKeys)
    {
       global WowWinId1
       global WowWinId2
       global WowWinId3
       global WowWinId4
       global WowWinId5
       IfWinNotActive, ahk_id %WowWinId1%
          ControlSend, , %strKeys%, ahk_id %WowWinId1%
       IfWinNotActive, ahk_id %WowWinId2%
          ControlSend, , %strKeys%, ahk_id %WowWinId2%
       IfWinNotActive, ahk_id %WowWinId3%
          ControlSend, , %strKeys%, ahk_id %WowWinId3%
       IfWinNotActive, ahk_id %WowWinId4%
          ControlSend, , %strKeys%, ahk_id %WowWinId4%
       IfWinNotActive, ahk_id %WowWinId5%
          ControlSend, , %strKeys%, ahk_id %WowWinId5%
    }
    
    ClonesClick(strKeys)
    {
       IfWinNotActive, ahk_id %WowWinId1%
          ControlClick, , ahk_id %WowWinId1%,, %strKeys%,
       IfWinNotActive, ahk_id %WowWinId2%
          ControlClick, , ahk_id %WowWinId2%,, %strKeys%,
       IfWinNotActive, ahk_id %WowWinId3%
          ControlClick, , ahk_id %WowWinId3%,, %strKeys%,
       IfWinNotActive, ahk_id %WowWinId4%
          ControlClick, , ahk_id %WowWinId4%,, %strKeys%,
       IfWinNotActive, ahk_id %WowWinId5%
          ControlClick, , ahk_id %WowWinId5%,, %strKeys%,
    }
    
    
    ;Grab unique window ID's
    WinGet, WowWinId, List, World of Warcraft
    
    ; *******************************
    ; *** Only if WoW is in focus ***
    ; *******************************
    #IfWinActive, World of Warcraft
    
    ;*** Special Functions ***
    
    ; *** Makes clones follow main ***
    ^-::ClonesPush("{- down}{- up}")
    
    ; *** Makes clones assist main ***
    ^=::ClonesPush("{= down}{= up}")
    
    ; *** Makes clones jump with main ***
    ~Space::ClonesPush("{Space down}{Space up}")
    
    ; *** Suspends HotKeys while typing on main ***
    ~Enter::Suspend, Toggle
    ~/::Suspend, On
    ~Escape::Suspend, Off
    
    ; Talking Clones
    ;~Enter::ClonesPush("{Enter down}{Enter up}")
    ;~a::ClonesPush("{a down}{a up}")
    ;~b::ClonesPush("{b down}{b up}")
    ;~c::ClonesPush("{c down}{c up}")
    ;~d::ClonesPush("{d down}{d up}")
    ;~e::ClonesPush("{e down}{e up}")
    ;~f::ClonesPush("{f down}{f up}")
    ;~g::ClonesPush("{g down}{g up}")
    ;;~h::ClonesPush("{h down}{h up}")
    ;~i::ClonesPush("{i down}{i up}")
    ;~j::ClonesPush("{j down}{j up}")
    ;~k::ClonesPush("{k down}{k up}")
    ;~l::ClonesPush("{l down}{l up}")
    ;~m::ClonesPush("{m down}{m up}")
    ;~n::ClonesPush("{n down}{n up}")
    ;~o::ClonesPush("{o down}{o up}")
    ;~p::ClonesPush("{p down}{p up}")
    ;~q::ClonesPush("{q down}{q up}")
    ;~r::ClonesPush("{r down}{r up}")
    ;~s::ClonesPush("{s down}{s up}")
    ;~t::ClonesPush("{t down}{t up}")
    ;~u::ClonesPush("{u down}{u up}")
    ;;~v::ClonesPush("{v down}{v up}")
    ;~w::ClonesPush("{w down}{w up}")
    ;~x::ClonesPush("{x down}{x up}")
    ;~y::ClonesPush("{y down}{y up}")
    ;~z::ClonesPush("{z down}{z up}")
    
    
    ; *******************
    ; *** Hotbars 1-0 ***
    ; *******************
    ; *** Hotbars 1-0 ***
    ~1::ClonesPush("{1 down}{1 up}")
    ~2::ClonesPush("{2 down}{2 up}")
    ~3::ClonesPush("{3 down}{3 up}")
    ~4::ClonesPush("{4 down}{4 up}")
    ~5::ClonesPush("{5 down}{5 up}")
    ~6::ClonesPush("{6 down}{6 up}")
    ~7::ClonesPush("{7 down}{7 up}")
    ~8::ClonesPush("{8 down}{8 up}")
    ~9::ClonesPush("{9 down}{9 up}")
    ~0::ClonesPush("{0 down}{0 up}")
    ~-::ClonesPush("{- down}{- up}")
    ~=::ClonesPush("{= down}{= up}")
    
    
    
    ; ***************************
    ; *** Hotbars SHIFT(+) 1-0 ***
    ; ***************************
    ~+1::ClonesPush("{Shift down}{1 down}{1 up}{Shift up}")
    ~+2::ClonesPush("{Shift down}{2 down}{2 up}{Shift up}")
    ~+3::ClonesPush("{Shift down}{3 down}{3 up}{Shift up}")
    ~+4::ClonesPush("{Shift down}{4 down}{4 up}{Shift up}")
    ~+5::ClonesPush("{Shift down}{5 down}{5 up}{Shift up}")
    ~+6::ClonesPush("{Shift down}{6 down}{6 up}{Shift up}")
    ~+7::ClonesPush("{Shift down}{7 down}{7 up}{Shift up}")
    ~+8::ClonesPush("{Shift down}{8 down}{8 up}{Shift up}")
    ~+9::ClonesPush("{Shift down}{9 down}{9 up}{Shift up}")
    ~+0::ClonesPush("{Shift down}{0 down}{0 up}{Shift up}")
    
    ; **************************
    ; *** Hotbars CTRL(^) 1-0 ***
    ; **************************
    ~^1::ClonesPush("{Ctrl down}{1 down}{1 up}{Ctrl up}")
    ~^2::ClonesPush("{Ctrl down}{2 down}{2 up}{Ctrl up}")
    ~^3::ClonesPush("{Ctrl down}{3 down}{3 up}{Ctrl up}")
    ~^4::ClonesPush("{Ctrl down}{4 down}{4 up}{Ctrl up}")
    ~^5::ClonesPush("{Ctrl down}{5 down}{5 up}{Ctrl up}")
    ~^6::ClonesPush("{Ctrl down}{6 down}{6 up}{Ctrl up}")
    ~^7::ClonesPush("{Ctrl down}{7 down}{7 up}{Ctrl up}")
    ~^8::ClonesPush("{Ctrl down}{8 down}{8 up}{Ctrl up}")
    ~^9::ClonesPush("{Ctrl down}{9 down}{9 up}{Ctrl up}")
    ~^0::ClonesPush("{Ctrl down}{0 down}{0 up}{Ctrl up}")
    
    ; *** Move clones ***
    ~Up::ClonesPush("{Up down}")
    ~Up Up::ClonesPush("{Up up}")
    ~Down::ClonesPush("{Down down}")
    ~Down Up::ClonesPush("{Down up}")
    ~Left::ClonesPush("{Left down}")
    ~Left Up::ClonesPush("{Left up}")
    ~Right::ClonesPush("{Right down}")
    ~Right Up::ClonesPush("{Right up}")
    
    ; Quest Turn ins
    ~[::ClonesPush("{[ down}{[ up}")
    ~]::ClonesPush("{] down}{] up}")
    
    ; Healing
    ~H::ClonesPush("{H down}{H up}")
    ~+H::ClonesPush("{Shift down}{H down}{H up}{Shift up}")
    
    ; Buff Weapon
    ~V::ClonesPush("{V down}{V up}")
    
    ; Totems
    ~F1::ClonesPush("{F1 down}{F1 up}")
    ~F2::ClonesPush("{F2 down}{F2 up}")
    ~F3::ClonesPush("{F3 down}{F3 up}")
    ~F4::ClonesPush("{F4 down}{F4 up}")
    
    ; Attacks
    ~t::ClonesPush("{t down}{t up}")
    
    ; Misc
    ~\::ClonesPush("{\ down}{\ up}")
    
    ; Clicks
    ~XButton2::ClonesClick("X2")
    ~XButton1::ClonesClick("X1")
    I cannot get it to work, i've tried alot of variations, only thing that happens is the mouse clicks on the active window and thats it.
    Any help would be greatly appreciated. I spent about 5 hours or more last night searching AHK website and google frantically to no avail.

  2. #2

    Default

    hello? beuller?

  3. #3

    Default

    bump
    someone please help me out here >.<

Similar Threads

  1. Problem with synergy passing right mouse clicks
    By lsoares in forum Software Tools
    Replies: 5
    Last Post: 06-17-2009, 06:25 AM
  2. mouse clicks
    By MultiUserCOOL in forum Software Tools
    Replies: 7
    Last Post: 11-30-2008, 01:17 PM
  3. Question about passing mouse clicks with AHK
    By Dorffo in forum Software Tools
    Replies: 4
    Last Post: 04-08-2008, 04:42 AM
  4. About mouse clicks
    By Phohammar in forum New Multi-Boxers & Support
    Replies: 4
    Last Post: 01-16-2008, 05:52 AM
  5. Mouse Clicks
    By x82nd in forum Software Tools
    Replies: 4
    Last Post: 11-09-2007, 02:11 AM

Posting Rules

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