Close
Showing results 1 to 5 of 5

Hybrid View

  1. #1

    Thumbs up

    Quote Originally Posted by mdsjohna View Post
    I have the follow script running to broadcast key stroke for my brand new attempt at dual boxing. I am running into two problems. One is the keys I have listed here will go two times into chat. So when I press e it types as ee in the chat window.
    I don't know ahk, but i ran into a similar problem for my linux script. The problem is that you have to make your script detecting the active wow client, and prevent broadcasting for that client. Cause what happens now is that you type a letter in client A, your ahk script detects a keypress and sends the keypress to all clients, i.e. also to the one where you just typed that letter.

    in pseudo code:

    detect wowwindows and rename/save them in a variable
    detect keypress in wow window
    if activewindow = a, broadcast keypress to bcde
    elseif activewindow = b broadcastkeypress to acde
    etc
    Everything that is fun in life is either bad for your health, immoral or illegal!

  2. #2

    Default

    Whats happening with yer script with the e's is when yeh hit the key it sends it to wow then yeh have yer script send it to yer wow's therefore what ever yeh have in the fore ground gets 2 e's.

    CAnt see a reason why it should go to chat dont maybe missing that part figure yeh didnt add yer whole script.

    for sending mouse clicks maybe look into http://www.autohotkey.com/docs/commands/Send.htm I never use mouse click for sending things to my other wows I use them for movement.

    This will work for any amounts of WOW instances and is much easier to tweak and adds things to

    Code:
    clonepush(strkey)
    {
    global winid
    Loop %winid% 
        {
        tmp:=winid%A_Index%
        IfWinNotActive, ahk_id %tmp%
            ControlSend, ,%strkey%, ahk_id %tmp%
        }
    sleep 1
    }
    
    WinGet, winid, List, World of Warcraft
    
    ;********  this part for all the keys ************
    #IfWinActive, World of Warcraft
    
    
    ; *******************
    ; *** Hotbars keys 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 : 03-09-2010 at 05:08 AM Reason: fixed cut-n-pate error

  3. #3

    Default

    Whats happening with yer script with the e's is when yeh hit the key it sends it to wow then yeh have yer script send it to yer wow's therefore what ever yeh have in the fore ground gets 2 e's.

    CAnt see a reason why it should go to chat maybe missing that part figure yeh didnt add yer whole script.

    for sending mouse clicks maybe look into http://www.autohotkey.com/docs/commands/Send.htm I never use mouse click for sending things to my other wows I use them for movement.

    This will work for any amounts of WOW instances and is much easier to tweak and adds things to

    Code:
    clonepush(strkey)
    {
    global winid
    Loop %winid% 
        {
        tmp:=winid%A_Index%
        IfWinNotActive, ahk_id %tmp%
            ControlSend, ,%strkey%, ahk_id %tmp%
        }
    sleep 1
    }
    
    WinGet, wowid, List, World of Warcraft
    
    ;********  this part for all the keys ************
    #IfWinActive, World of Warcraft
    
    
    ; *******************
    ; *** Hotbars keys 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}")
    dont have a whole lot of time at the moment to go thru this I'll get back later to clarifing

Posting Rules

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