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

    Default Trouble with autohotkey

    I just cant figure it out =( All I can get to work is this:

    [code:1]~1::
    KeyWait, 1, D
    #IfWinActive, World of Warcraft
    {
    ControlSend,, 1, ahk_id %wowid1%
    ControlSend,, 1, ahk_id %wowid2%
    }
    Return
    [/code:1]

    What I'd like is to be able to click something and send something else so another window. Like If I like shift 2, That would return 2 to window 2 and nothing to window 1.

    I tried to bind space to both windows but it didnt work either.

    ~space::
    KeyWait, space, D
    #IfWinActive, World of Warcraft
    {
    ControlSend,, space, ahk_id %wowid1%
    ControlSend,, space, ahk_id %wowid2%
    }
    Return
    When I do this only 1 of them jumps and wierd things happen. Open spell book, sit down etc. Like all keys were pressed.

    If someone would just provide me with something that I can copy and paste I'll be happy. I doubt I'll ever be able to learn how this works :S.

    Thanks!

  2. #2

  3. #3

    Default

    That wasn't what I wanted but I managed to work it out myself anyway.
    I wanted to press 1 key, and then make it send another key to 1 of the clients. This is what I came up with:

    Shift & v::
    KeyWait, shift, D
    #IfWinActive, World of Warcraft
    {
    ControlSend,, v, ahk_id %wowid1%
    }
    Now I ran into another problem however. The wowid seems to switch all the time. Donnu if it matters in what order I start wow. But it seems to change when I reload the script. Very annoying and it takes like 10 minutes to get the ID right each time I wanna play =/.

    Anyone know how to solve it?

  4. #4

    Default

    You have to define wowID1 and 2 as something else, E.G IDClone, IDMain, then select which one is which using the following script.
    Wilbur

  5. #5

    Default

    Quote Originally Posted by Wilbur
    You have to define wowID1 and 2 as something else, E.G IDClone, IDMain, then select which one is which using the following script.
    ah, quite a nifty script that!

    poking around in that thread I saw some sort of plugin or something for AHK, seems to be developed by sorn. Anyone know what happened with that? Did he give it up?

  6. #6

    Default

    Not entirely sure. Haven't seen him on the boards for a while.
    Wilbur

  7. #7

    Default

    do you reload the script once all clients are open and logged in ?

    I find this will solve the waiting issue you may be having.

    and to remap keys i havent tried it but it would go something like this

    This small snippet will remap SHIFT+1 to V

    So shift+1 will only go to the first instance of wow open and when you press shift+1 it will send the keypress V to the next instance of wow that is open.

    I recently tidied up my code with the wait command so keys dont que when you press them.

    [code:1]
    WinGet, wowid, List, World of Warcraft

    ; *** Begin Action Bar sequence ***

    ~Shift & 1::
    IfWinActive, World of Warcraft
    {
    ControlSend,,{V down}, ahk_id %wowid1%
    ControlSend,,{V down}, ahk_id %wowid2%
    KeyWait V
    ControlSend,,{V up}, ahk_id %wowid1%
    ControlSend,,{V up}, ahk_id %wowid2%
    return
    } [/code:1]

Similar Threads

  1. Hello! Help me please,I've got a trouble
    By Xcox in forum New Multi-Boxers & Support
    Replies: 4
    Last Post: 02-16-2009, 12:04 PM
  2. Having trouble...
    By antilifesaver in forum New Multi-Boxers & Support
    Replies: 8
    Last Post: 02-03-2009, 10:32 PM
  3. Having a lot of trouble
    By Bladin in forum New Multi-Boxers & Support
    Replies: 5
    Last Post: 08-23-2008, 05:39 PM
  4. New and having some trouble...
    By organik005 in forum New Multi-Boxers & Support
    Replies: 4
    Last Post: 01-27-2008, 02:04 PM
  5. Trouble with autohotkey
    By Ohls in forum General WoW Discussion
    Replies: 0
    Last Post: 01-01-1970, 12:00 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
  •