Close
Showing results 1 to 5 of 5

Thread: Help-AHK

Hybrid View

  1. #1

    Default Help-AHK

    #IfWinActive, World of Warcraft
    ~`::
    ControlSend,,{` down}, ahk_id %idMain%
    ControlSend,,{= down}, ahk_id %idClone%
    ControlSend,,{` down}, ahk_id %idClone%
    return

    #IfWinActive, World of Warcraft
    ~` up::
    ControlSend,,{` up}, ahk_id %idMain%
    ControlSend,,{= up}, ahk_id %idClone%
    ControlSend,,{` up}, ahk_id %idClone%
    return

    I setup the (`)key to cast (ex.mount),but only the main char works for just 0.001 second and stop casting immediately,the colne doesn't active...
    only this key script has problem,the others all work fine.
    Please tell me where's wrong.
    thanks and forgive my poor English XD

  2. #2

    Default

    first, remove the middle line with the = key in it; that's a default from Sorn's script that only he uses; = is his "Assist" macro hotkey, he wrote the script so it would assist on every press, you don't need it lol

    Second, if that doesn't fix it, try the ofllowing:
    [code:1]#IfWinActive, World of Warcraft
    ~`::
    ControlSend,,{` down}{` up}, ahk_id %idMain%
    ControlSend,,{` down}{` up}, ahk_id %idClone%
    return[/code:1]
    Not Currently Boxing
    IRC Excerpt:
    Drayth> Finish this set: Spaceturkey Lazurturkey Moonturkey Starturkey - and no, don't say Sunturkey.
    Fursphere> Moonturkey? Drayth> Look at #3...lol - Fursphere> damnit...Starturkey?
    Fursphere> FUCK. - Drayth> lol... * Fursphere gets on the failboat

  3. #3

    Default

    The main is working because you have ~ infront of the hotkey, this passes the hotkey through to your active window.

    The easiest way to test this is to open the chat entry box on both clients and hit the hot key... if only one ' appears on the main then you know the hotkey isn't really working on your main either... it is doing the action because it was passed through the hotkey polling.

    It is a shame Sorn's script is so widely used... there are much better examples on these forums without the redundant #WinActive instructions and which are much more efficient.

  4. #4

    Default

    The #WinActive bit is necessary for some of us who're multi-taskers, particularly IRC and instant messengers, or web surfing while playing ;p Long as it's not lagging the response time to keypresses I don't care either lol
    Not Currently Boxing
    IRC Excerpt:
    Drayth> Finish this set: Spaceturkey Lazurturkey Moonturkey Starturkey - and no, don't say Sunturkey.
    Fursphere> Moonturkey? Drayth> Look at #3...lol - Fursphere> damnit...Starturkey?
    Fursphere> FUCK. - Drayth> lol... * Fursphere gets on the failboat

  5. #5

    Default

    it is only needed at the top of the script... all lines below the directive have that directive applied to them. Try it you will see what I mean

    If it is there don't bother removing it but it really isn't necesary, I imagine there is no significant impact once the script is in memory.

Posting Rules

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