I'm not sure, why, but it seems that Pixelsearch isn't working on my laptop. I tested it just to make sure, and it's definitely not working. Any idea if there's a function or something that will make the laptop recognize Pixelsearch or a different approach at pixelsearch? Here's the two codes I made to test it out.
First Code: If Pixel at X location is X color, MsgBox popup and function endloop.
HotKeySet("{1}","Start")
HotKeySet("{2}","Stop")
dim $i
dim $pos[2]
dim $check
Func Start()
MsgBox(0,"Started","Started")
for $i = 1 to 9999999999
$check = PixelGetColor(345,344)
if not @Error Then
if $check = 16756425 Then
MsgBox(0,"Worked","Worked")
ExitLoop
EndIf
EndIf
Next
MsgBox(0,"Done","Done")
EndFunc
Func Stop()
Exit
EndFunc
While 1
Sleep(10)
WEnd
Second Code: If area around Pixel at X location is X color then MsgBox popup and function endloop.<-Doesn't work on laptop at all.
HotKeySet("{1}","Start")
HotKeySet("{2}","Stop")
dim $i
dim $pos[2]
dim $check
Func Start()
MsgBox(0,"Started","Started")
for $i = 1 to 9999999999
$check = PixelSearch(300,400,300,400,16756425)
if not @Error Then
if $check = 16756425 Then
MsgBox(0,"Worked","Worked")
ExitLoop
EndIf
EndIf
Next
MsgBox(0,"Done","Done")
EndFunc
Func Stop()
Exit
EndFunc
While 1
Sleep(10)
WEnd