ok i edited this and did more tests i believe that it has something to do with windowed minecraft any fixes?
Code: Select all
numpad5::
loop, 1 { ;another one
hornot()
}
return
hornot() { ; Northf3
loop, 2 { ; This loop here!
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 0
PixelGetColor, north1, 125, 232 ;a
if ((north1 = 0x404040)) {
; DllCall("mouse_event", "UInt", 0x01, "UInt", 400, "UInt", 0)\
PixelGetColor, south1, 84, 233
if ((south1 = 0x404040)) {
Northf3 = 0
Southf3 = 1
Westf3 = 0
Eastf3 = 0
DllCall("mouse_event", "UInt", 0x01, "UInt", -400, "UInt", 0)
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 0
} else {
Northf3 = 1
Southf3 = 0
Westf3 = 0
Eastf3 = 0
DllCall("mouse_event", "UInt", 0x01, "UInt", 400, "UInt", 0)
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 0
}} else {
PixelGetColor, west1, 80, 225
if ((west1 = 0x404040)) {
Northf3 = 0
Southf3 = 0
Westf3 = 1
Eastf3 = 0
DllCall("mouse_event", "UInt", 0x01, "UInt", 800, "UInt", 0)
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 0
} else {
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 1
}
}
/*
;MsgBox, %Westf3%%Northf3%%Southf3%%Eastf3%
if ((Eastf3 = 1) && (Westf3 = 0) && (Northf3 = 0) && (Southf3 = 0)) {
return
}
else if ((Eastf3 = 0) && (Westf3 = 1) && (Northf3 = 0) && (Southf3 = 0)) {
DllCall("mouse_event", "UInt", 0x01, "UInt", 800, "UInt", 0)
return
}
else if ((Eastf3 = 0) && (Westf3 = 0) && (Northf3 = 1) && (Southf3 = 0)) {
DllCall("mouse_event", "UInt", 0x01, "UInt", 400, "UInt", 0)
return
}
else if ((Eastf3 = 0) && (Westf3 = 0) && (Northf3 = 0) && (Southf3 = 1)) {
DllCall("mouse_event", "UInt", 0x01, "UInt", -400, "UInt", 0)
return
*/
;}
;MsgBox, %Westf3%%Northf3%%Southf3%%Eastf3%
Northf3 = 0
Southf3 = 0
Westf3 = 0
Eastf3 = 0
;MsgBox, %Westf3%%Northf3%%Southf3%%Eastf3%
return
}
;MsgBox, %Westf3%%Northf3%%Southf3%%Eastf3%
return
}