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

    Default Need a pro to check this

    Need a pro to look over this script and let me know if its all good or did i miss something or made a mistake makin it. I have omitied the 1 thru = and numpads as it wouldnt all fit on the page...im really worried that i didnt do the SHIFT+(A NUMBER/MOUSE BUTTON) and ALT+(A NUMBER/MOUSE BUTTON) correctly or just the mouse buttons in general.


    Code:
    WinGet, wowid, List, World of Warcraft 
    
    #IfWinActive, World of Warcraft 
    ~MbuttonShift:: 
    ControlSend,,{shift down}{MButton down}{MButton up}{shift up}, ahk_id %wowid1% 
    ControlSend,,{shift down}{MButton down}{MButton up}{shift up}, ahk_id %wowid2% 
    ControlSend,,{shift down}{MButton down}{MButton up}{shift up}, ahk_id %wowid3% 
    ControlSend,,{shift down}{MButton down}{MButton up}{shift up}, ahk_id %wowid4% 
    ControlSend,,{shift down}{MButton down}{MButton up}{shift up}, ahk_id %wowid5% 
    return 
    
    #IfWinActive, World of Warcraft 
    ~XButton1Shift:: 
    ControlSend,,{shift down}{XButton1 down}{XButton1 up}{shift up}, ahk_id %wowid1% 
    ControlSend,,{shift down}{XButton1 down}{XButton1 up}{shift up}, ahk_id %wowid2% 
    ControlSend,,{shift down}{XButton1 down}{XButton1 up}{shift up}, ahk_id %wowid3% 
    ControlSend,,{shift down}{Xbutton1 down}{XButton1 up}{shift up}, ahk_id %wowid4% 
    ControlSend,,{shift down}{XButton1 down}{XButton1 up}{shift up}, ahk_id %wowid5% 
    return 
    
    #IfWinActive, World of Warcraft 
    ~XButton2Shift:: 
    ControlSend,,{shift down}{XButton2 down}{XButton2 up}{shift up}, ahk_id %wowid1% 
    ControlSend,,{shift down}{XButton2 down}{XButton2 up}{shift up}, ahk_id %wowid2% 
    ControlSend,,{shift down}{XButton2 down}{XButton2 up}{shift up}, ahk_id %wowid3% 
    ControlSend,,{shift down}{Xbutton2 down}{XButton2 up}{shift up}, ahk_id %wowid4% 
    ControlSend,,{shift down}{XButton2 down}{XButton2 up}{shift up}, ahk_id %wowid5% 
    return 
    
    #IfWinActive, World of Warcraft 
    ~!XButton1:: 
    ControlSend,,{alt down}{XButton1 down}{XButton1 up}{alt up}, ahk_id %wowid1% 
    ControlSend,,{alt down}{XButton1 down}{XButton1 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{XButton1 down}{XButton1 up}{alt up}, ahk_id %wowid3% 
    ControlSend,,{alt down}{XButton1 down}{XButton1 up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{XButton1 down}{XButton1 up}{alt up}, ahk_id %wowid5% 
    return 
    #IfWinActive, World of Warcraft 
    ~!XButton2:: 
    ControlSend,,{alt down}{XButton2 down}{XButton2 up}{alt up}, ahk_id %wowid1% 
    ControlSend,,{alt down}{XButton2 down}{XButton2 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{XButton2 down}{XButton2 up}{alt up}, ahk_id %wowid3% 
    ControlSend,,{alt down}{XButton2 down}{XButton2 up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{XButton2 down}{XButton2 up}{alt up}, ahk_id %wowid5% 
    return 
    #IfWinActive, World of Warcraft 
    ~!MButton:: 
    ControlSend,,{alt down}{MButton down}{MButton up}{alt up}, ahk_id %wowid1% 
    ControlSend,,{alt down}{MButton down}{Mbutton up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{MButton down}{MButton up}{alt up}, ahk_id %wowid3% 
    ControlSend,,{alt down}{MButton down}{MButton up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{MButton down}{Mbutton up}{alt up}, ahk_id %wowid5% 
    return 
    ~MButton:: 
    KeyWait 1
    IfWinActive, World of Warcraft 
    { 
    ControlSend,, {MButton}, ahk_id %wowid1% 
    ControlSend,, {MButton}, ahk_id %wowid2% 
    ControlSend,, {MButton}, ahk_id %wowid3%
    ControlSend,, {MButton}, ahk_id %wowid4%
    ControlSend,, {MButton}, ahk_id %wowid5% 
    Return 
    }
    #IfWinActive, World of Warcraft 
    ~+1:: 
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid1% 
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid2%
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid3% 
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid4%
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~+2:: 
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid1% 
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid2%
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid3%
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid4%
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~+3:: 
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid1% 
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid2%
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid3%
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid4%
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~+4:: 
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid1% 
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid2%
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid3%
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid4%
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid5%
    return 
    
    #IfWinActive, World of Warcraft 
    ~!1:: 
    ControlSend,,{alt down}{1 down}{1 up}{alt up}, ahk_id %wowid1% 
    ControlSend,,{alt down}{1 down}{1 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{1 down}{1 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{1 down}{1 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{1 down}{1 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!2:: 
    ControlSend,,{alt down}{2 down}{2 up}{alt up}, ahk_id %wowid1% 
    ControlSend,,{alt down}{2 down}{2 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{2 down}{2 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{2 down}{2 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{2 down}{2 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!3:: 
    ControlSend,,{alt down}{3 down}{3 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{3 down}{3 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{3 down}{3 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{3 down}{3 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{3 down}{3 up}{alt up}, ahk_id %wowid5% 
    return 
    #IfWinActive, World of Warcraft 
    ~!4:: 
    ControlSend,,{alt down}{4 down}{4 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{4 down}{4 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{4 down}{4 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{4 down}{4 up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{4 down}{4 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!5:: 
    ControlSend,,{alt down}{5 down}{5 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{5 down}{5 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{5 down}{5 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{5 down}{5 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{5 down}{5 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!6:: 
    ControlSend,,{alt down}{6 down}{6 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{6 down}{6 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{6 down}{6 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{6 down}{6 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{6 down}{6 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!7:: 
    ControlSend,,{alt down}{7 down}{7 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{7 down}{7 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{7 down}{7 up}{alt up}, ahk_id %wowid3% 
    ControlSend,,{alt down}{7 down}{7 up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{7 down}{7 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!8:: 
    ControlSend,,{alt down}{8 down}{8 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{8 down}{8 up}{alt up}, ahk_id %wowid2%
    ControlSend,,{alt down}{8 down}{8 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{8 down}{8 up}{alt up}, ahk_id %wowid4% 
    ControlSend,,{alt down}{8 down}{8 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!9:: 
    ControlSend,,{alt down}{9 down}{9 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{9 down}{9 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{9 down}{9 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{9 down}{9 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{9 down}{9 up}{alt up}, ahk_id %wowid5%
    return 
    #IfWinActive, World of Warcraft 
    ~!0:: 
    ControlSend,,{alt down}{0 down}{0 up}{alt up}, ahk_id %wowid1%  
    ControlSend,,{alt down}{0 down}{0 up}{alt up}, ahk_id %wowid2% 
    ControlSend,,{alt down}{0 down}{0 up}{alt up}, ahk_id %wowid3%
    ControlSend,,{alt down}{0 down}{0 up}{alt up}, ahk_id %wowid4%
    ControlSend,,{alt down}{0 down}{0 up}{alt up}, ahk_id %wowid5%
    return
    Last edited by MiRai : 02-10-2013 at 10:22 PM Reason: [code] tags help save lives

  2. #2
    Member luxlunae's Avatar
    Join Date
    Aug 2008
    Location
    Bay Area, CA
    Posts
    1431
    Blog Entries
    37

    Default

    As a person who used AHK (and still runs it for other stuff, all the time) for years, that looks ok but I'd suggest just giving one of the more powerful tools a try. Isboxer is amazing, or Hotkeynet if you insist on free.

  3. #3

    Default

    Shift: +
    Ctrl: ^
    Alt: !

    Code:
    #IfWinActive, World of Warcraft 
    ~+MButton:: 
    {
    ControlSend,,{Shift down}{MButton down}{MButton up}{Shift up}, ahk_id %wowid1% 
    ControlSend,,{Shift down}{MButton down}{MButton up}{Shift up}, ahk_id %wowid2% 
    ControlSend,,{Shift down}{MButton down}{MButton up}{Shift up}, ahk_id %wowid3% 
    ControlSend,,{Shift down}{MButton down}{MButton up}{Shift up}, ahk_id %wowid4% 
    ControlSend,,{Shift down}{MButton down}{MButton up}{Shift up}, ahk_id %wowid5% 
    }
    return
    Pretty sure you can remove the line for wow1 because you will be pushing the buttons down and so will AHK... so it will be doing it twice.

  4. #4

    Default

    It didn't work...what im trying to get to work is shift+(Backward Thumb clicker on mouse"for browsing") which i thought was Xbutton1 but it is not, i tried MButton4 and that doesnt work am i missing something?

  5. #5

    Default

    Script works with normal keys, maybe not with mouse keys. Have you tried remapping your mouse button to keyboard keys and see if that works?

  6. #6
    Member luxlunae's Avatar
    Join Date
    Aug 2008
    Location
    Bay Area, CA
    Posts
    1431
    Blog Entries
    37

    Default

    I'd suggest that you keybind keyboard binds in the game and only use the mouse buttons for your own shortcuts.

  7. #7

    Default

    Quote Originally Posted by dukarax View Post
    It didn't work...what im trying to get to work is shift+(Backward Thumb clicker on mouse"for browsing") which i thought was Xbutton1 but it is not, i tried MButton4 and that doesnt work am i missing something?
    Check the special keys section at the bottom of the page.

    If that doesn't work then reconfigure your mouse setting for that button. Make thumb button to press "i" key down. Then just make the following hotkey:

    +i::

  8. #8

    Default

    Quote Originally Posted by aasi888 View Post
    Check the special keys section at the bottom of the page.

    If that doesn't work then reconfigure your mouse setting for that button. Make thumb button to press "i" key down. Then just make the following hotkey:

    +i::
    So i downloaded x-mouse and remapped the mouse buttons and edited the script and now is working like a charm.. thanks for all ur help!

Posting Rules

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