View difference between Paste ID: dREdDtD2 and wxdcb27Z
SHOW: | | - or go back to the newest paste.
1
*RButton::									;Button you wish to bind to the macro
2
	PriorDownKey := DownKey := ""
3
	while GetKeyState("RButton", "P") 					;Update this line with macro bind as well
4
	{
5
		PixelGetColor, AMColor, 3, 3
6
 
7
		if (AMColor = 0x0000FF)
8
			DownKey := "="						;Rampage Bind
9
		else if (AMColor = 0x0080FF)
10
			DownKey := "4"						;Smackdown Bind when running Savage Strikes
11
		else if (AMColor = 0x00FFFF)
12
			DownKey := "3"						;Powerlink Bind
13
		else if (AMColor = 0x00FF00)
14
			DownKey := "1"						;Breaching Strikes Bind
15
		else if (AMColor = 0xFF00FF)
16
			DownKey := "2"						;Savagestrikes or Smackdown when only running one
17
		else
18
			DownKey := "-"						;Relentless Strikes Bind
19
 
20
		if (DownKey != PriorDownKey)
21
		{
22
			for each, Key in [1,2,3,4,"-","="]			;Update these with all your binds
23
				if (Key != DownKey && GetKeyState(Key))
24
					Send, {%Key% up}
25
			Send, {%DownKey% down}
26
			PriorDownKey := DownKey
27
		}
28
	}
29
 	
30
 	;Update these with all your binds as well
31
	if (GetKeyState("1"))
32
		Send, {1 up}
33
	if (GetKeyState("2"))
34
		Send, {2 up}
35
	if (GetKeyState("3"))
36
		Send, {3 up}
37
	if (GetKeyState("4"))
38
		Send, {4 up}
39
	if (GetKeyState("-"))
40
		Send, {- up}
41
	if (GetKeyState("="))
42
		Send, {= up}
43
	return