Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *RButton:: ;Button you wish to bind to the macro
- PriorDownKey := DownKey := ""
- while GetKeyState("RButton", "P") ;Update this line with macro bind as well
- {
- PixelGetColor, AMColor, 3, 3
- if (AMColor = 0x0000FF)
- DownKey := "=" ;Rampage Bind
- else if (AMColor = 0x0080FF)
- DownKey := "4" ;Smackdown Bind when running Savage Strikes
- else if (AMColor = 0x00FFFF)
- DownKey := "3" ;Powerlink Bind
- else if (AMColor = 0x00FF00)
- DownKey := "1" ;Breaching Strikes Bind
- else if (AMColor = 0xFF00FF)
- DownKey := "2" ;Savagestrikes or Smackdown when only running one
- else
- DownKey := "-" ;Relentless Strikes Bind
- if (DownKey != PriorDownKey)
- {
- for each, Key in [1,2,3,4,"-","="] ;Update these with all your binds
- if (Key != DownKey && GetKeyState(Key))
- Send, {%Key% up}
- Send, {%DownKey% down}
- PriorDownKey := DownKey
- }
- }
- ;Update these with all your binds as well
- if (GetKeyState("1"))
- Send, {1 up}
- if (GetKeyState("2"))
- Send, {2 up}
- if (GetKeyState("3"))
- Send, {3 up}
- if (GetKeyState("4"))
- Send, {4 up}
- if (GetKeyState("-"))
- Send, {- up}
- if (GetKeyState("="))
- Send, {= up}
- return
Advertisement
Add Comment
Please, Sign In to add comment