Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxHotkeysPerInterval 1000
  2.  
  3. inSwapMode := false
  4.  
  5. ; Copy this function into your script to use it.
  6. HideTrayTip() {
  7.     TrayTip  ; Attempt to hide it the normal way.
  8.     if SubStr(A_OSVersion,1,3) = "10."
  9.     {
  10.         Menu Tray, NoIcon
  11.         Sleep 200  ; It may be necessary to adjust this sleep.
  12.         Menu Tray, Icon
  13.     }
  14. }
  15.  
  16. F7::
  17. if ( inSwapMode = true )
  18. {
  19.     TrayTip weapon swap status, "mwheel" bound.
  20. }
  21. else
  22. {
  23.     TrayTip weapon swap status, "mwheel" unbound.
  24. }
  25. Return
  26.  
  27. F8::
  28. inSwapMode := !inSwapMode
  29. Return
  30.  
  31. WheelDown::
  32. if ( inSwapMode = true )
  33. {
  34.     IfWinActive, Path of Exile
  35.     {
  36.         Send, x
  37.     }
  38. }
  39. else
  40. {
  41.     MouseClick, WD
  42. }
  43. Return
  44.  
  45. WheelUp::
  46. if ( inSwapMode = true )
  47. {
  48.     IfWinActive, Path of Exile
  49.     {
  50.         Send, x
  51.     }
  52. }
  53. else
  54. {
  55.     MouseClick, WU
  56. }
  57. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement