This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Multibox

By: a guest on Nov 24th, 2013  |  syntax: None  |  size: 2.87 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. WinGet, wowid, List, World of Warcraft
  2.  
  3. ;**************************************************************
  4. ;*************** Standard Keyboard Hotkeys ****************
  5. ;**************************************************************
  6.  
  7. ~1::
  8. ~2::
  9. ~3::
  10. ~4::
  11. ~5::
  12. ~6::
  13. ~7::
  14. ~8::
  15. ~9::
  16. ~0::
  17. ~-::
  18. ~=::
  19. ~q::
  20. ~w::
  21. ~e::
  22. ~r::
  23. ~t::
  24. ~y::
  25. ~u::
  26. ~i::
  27. ~o::
  28. ~p::
  29. ~[::
  30. ~]::
  31. ~a::
  32. ~s::
  33. ~d::
  34. ~f::
  35. ~g::
  36. ~h::
  37. ~j::
  38. ~k::
  39. ~l::
  40. ~;::
  41. ~'::
  42. ~z::
  43. ~x::
  44. ~c::
  45. ~v::
  46. ~b::
  47. ~n::
  48. ~m::
  49. ~,::
  50. ~.::
  51. ~`::
  52. ~/::
  53.  
  54. IfWinActive, ahk_id %wowid1%
  55. {
  56. StringTrimLeft, ThisKey, A_ThisHotKey, 1
  57. ControlSend,, %ThisKey%, ahk_id %wowid2%
  58. Return
  59. }
  60. IfWinActive, ahk_id %wowid2%
  61. {
  62. StringTrimLeft, ThisKey, A_ThisHotKey, 1
  63. ControlSend,, %ThisKey%, ahk_id %wowid1%
  64. Return
  65. }
  66.  
  67. ;**************************************************************
  68. ;********************** NUMPAD KEYS ************************
  69. ;**************************************************************
  70. ~NumpadAdd::
  71. IfWinActive, ahk_id %wowid1%
  72. {
  73. ControlSend,, {NumpadAdd down}{NumpadAdd up}, ahk_id %wowid2%
  74. Return
  75. }
  76. IfWinActive, ahk_id %wowid2%
  77. {
  78. ControlSend,, {NumpadAdd down}{NumpadAdd up}, ahk_id %wowid1%
  79. Return
  80. }
  81.  
  82. ~NumpadDiv::
  83. IfWinActive, ahk_id %wowid1%
  84. {
  85. ControlSend,, {NumpadDiv down}{NumpadDiv up}, ahk_id %wowid2%
  86. Return
  87. }
  88. IfWinActive, ahk_id %wowid2%
  89. {
  90. ControlSend,, {NumpadDiv down}{NumpadDiv up}, ahk_id %wowid1%
  91. Return
  92. }
  93.  
  94. ~NumpadMult::
  95. IfWinActive, ahk_id %wowid1%
  96. {
  97. ControlSend,, {NumpadMult down}{NumpadMult up}, ahk_id %wowid2%
  98. Return
  99. }
  100. IfWinActive, ahk_id %wowid2%
  101. {
  102. ControlSend,, {NumpadMult down}{NumpadMult up}, ahk_id %wowid1%
  103. Return
  104. }
  105. ;**************************************************************
  106. ;********************** MOUSE *********************************
  107. ;**************************************************************
  108. ~XButton1::
  109. IfWinActive, ahk_id %wowid1%
  110. {
  111. ControlSend,, {NumPadSub down}{NumPadSub up}, ahk_id %wowid2%
  112. Return
  113. }
  114. IfWinActive, ahk_id %wowid2%
  115. {
  116. ControlSend,, {NumPadSub down}{NumPadSub up}, ahk_id %wowid1%
  117. Return
  118. }
  119.  
  120.  
  121. ~XButton2::
  122. IfWinActive, ahk_id %wowid1%
  123. {
  124. ControlSend,, {NumpadMult}{NumpadMult up}, ahk_id %wowid2%
  125. Return
  126. }
  127. IfWinActive, ahk_id %wowid2%
  128. {
  129. ControlSend,, {NumpadMult down}{NumpadMult up}, ahk_id %wowid1%
  130. Return
  131. }
  132.  
  133. ~!XButton2::
  134. IfWinActive, ahk_id %wowid1%
  135. {
  136. ControlSend,, {NumPadDiv down}{NumPadDiv up}, ahk_id %wowid2%
  137. Return
  138. }
  139. IfWinActive, ahk_id %wowid2%
  140. {
  141. ControlSend,, {NumPadDiv down}{NumPadDiv up}, ahk_id %wowid1%
  142. Return
  143. }
  144.  
  145. ;**************************************************************
  146. ;********************** SPECIAL KEYS***************************
  147. ;**************************************************************
  148.  
  149. ~Space::
  150. IfWinActive, World of Warcraft
  151. {
  152. ControlSend,, {Space down}, ahk_id %wowid2%
  153. loop
  154. {
  155. getkeystate, state, Space
  156. if state = U
  157. break
  158. }
  159. ControlSend,, {Space up}, ahk_id %wowid2%
  160. Return
  161. }
clone this paste RAW Paste Data