Close
Showing results 1 to 4 of 4

Hybrid View

  1. #1

    Default does "if WinActivate" work?

    I was wondering if something like this would work:

    ----------------

    1::

    KeyWait, 1, D

    {

    if WinActivate, ahk_id %wowid1%
    {
    ControlSend,, 2, ahk_id %wowid1%


    ControlSend,, Numpad2, ahk_id %wowid2%


    } else {
    ControlSend,, Numpad2, ahk_id %wowid1%


    ControlSend,, 2, ahk_id %wowid2%}

    Return

    }

  2. #2

    Default

    Yes it should:
    Code:
    1::
     if WinActivate, ahk_id %wowid1%
     { 
     ControlSend,, 2, ahk_id %wowid1%
      ControlSend,, Numpad2, ahk_id %wowid2%
     } 
    else
    { 
     ControlSend,, Numpad2, ahk_id %wowid1%
      ControlSend,, 2, ahk_id %wowid2%} 
    }
     Return
    **Note: Not Tested***

  3. #3

    Default

    If you are using the below method of defining the Alt's windows versus the active window:

    ClonesPush(strKeys)
    {
    global WowWinId1
    global WowWinId2
    IfWinNotActive, ahk_id %WowWinId1%
    ControlSend, , %strKeys%, ahk_id %WowWinId1%
    IfWinNotActive, ahk_id %WowWinId2%
    ControlSend, , %strKeys%, ahk_id %WowWinId2%
    }
    Then you only need to do this:

    ~2::ClonesPush("{numpad2 down}{numpad2 up}")
    This makes it so that whenever the active window presses 2, the alt will press Numpad 2.
    "For God's sake, don't stand there at 30 yards trying to cast a spell, he will melt your face period."

    Lokked

  4. #4

    Default

    o i only just checked back , thanks that will help clean up my code a lot i was doing it the original way i posted thanks

Similar Threads

  1. Can not get it to work.
    By cornholio3050 in forum New Multi-Boxers & Support
    Replies: 5
    Last Post: 11-02-2008, 07:12 AM
  2. Can't get NS to work
    By magwo in forum PvP Discussion
    Replies: 13
    Last Post: 08-08-2008, 09:09 AM
  3. Just won't work!
    By Xiku in forum Software Tools
    Replies: 5
    Last Post: 02-27-2008, 12:44 AM
  4. Only for WoW? Work for EQ2?
    By Mezzy in forum New Multi-Boxers & Support
    Replies: 5
    Last Post: 01-17-2008, 05:40 PM
  5. Will this work?
    By Theanara in forum New Multi-Boxers & Support
    Replies: 2
    Last Post: 11-07-2007, 01:52 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
  •