puhhhhhhh
Pixelsearch is !@#$%^* for "snapshots" mostly.
You can use Pixelchecksum, but you will allways need one PLC and one BL for Snapshots before you can start.
If you would use PixelSearch you will have to work very exact with the mapping on different Inventory Positions.
Look into the Sources of my Reversebot, especially at the checkfor35 and check35setup Functions and hopefully you will understand how it works.
Code: Register to unlock hidden link
Func _checkfor35()
$Inventory_Pos = WinGetPos("Inventory Grid")
$Powerbit_1_chksum = IniRead("config.ini", "REVERSEBOT", "POWERBIT1CHKSUM", "0")
$Powerbit_2_chksum = IniRead("config.ini", "REVERSEBOT", "POWERBIT2CHKSUM", "0")
$checkpowerbit = PixelChecksum($Inventory_Pos[0] + 155, $Inventory_Pos[1] + 68, $Inventory_Pos[0] + 200, $Inventory_Pos[1] + 85)
If IniRead("config.ini", "FUNCTIONS", "ABORTREVERSEBOT", "0") == "0" Then
If $checkpowerbit == $Powerbit_1_chksum OR $checkpowerbit == $Powerbit_2_chksum Then
_changepowerbit()
MouseMove($Inventory_Pos[0] + "182", $Inventory_Pos[1] + "117", $mousemovedelay)
_checkfor35()
Else
_reversebot()
EndIf
Else
_countruns()
EndIf
EndFunc
Code: Register to unlock hidden link
Func _check35setup()
$Inventory_Pos = WinGetPos("Inventory Grid")
$Reversebot_powerbit = IniRead("config.ini", "REVERSEBOT", "POWERBITS", "1")
If $Reversebot_powerbit > 1 Then
$Msg_box0 = MsgBox(1 + 262144, $bottitle, $check35_powerbitoverride)
If $Msg_box0 == 1 Then
IniWrite("config.ini", "REVERSEBOT", "POWERBITS", "1")
$msg_box1 = MsgBox(1 + 262144, $bottitle, $putinfirstpowerbit_text)
If $msg_box1 == 1 Then
$powerbit1_chksum = PixelChecksum($Inventory_Pos[0] + 155, $Inventory_Pos[1] + 68, $Inventory_Pos[0] + 200, $Inventory_Pos[1] + 85)
IniWrite("config.ini", "REVERSEBOT", "POWERBIT1CHKSUM", $powerbit1_chksum)
$msg_box2 = MsgBox(1 + 262144, $bottitle, $putinsecondpowerbit_text)
If $msg_box2 == 1 Then
$powerbit2_chksum = PixelChecksum($Inventory_Pos[0] + 155, $Inventory_Pos[1] + 68, $Inventory_Pos[0] + 200, $Inventory_Pos[1] + 85)
IniWrite("config.ini", "REVERSEBOT", "POWERBIT2CHKSUM", $powerbit2_chksum)
EndIf
Else
IniWrite("config.ini", "REVERSEBOT", "CHECK35", "0")
EndIf
EndIf
Else
$msg_box1 = MsgBox(1 + 262144, $bottitle, $putinfirstpowerbit_text)
If $msg_box1 == 1 Then
$powerbit1_chksum = PixelChecksum($Inventory_Pos[0] + 155, $Inventory_Pos[1] + 68, $Inventory_Pos[0] + 200, $Inventory_Pos[1] + 85)
IniWrite("config.ini", "REVERSEBOT", "POWERBIT1CHKSUM", $powerbit1_chksum)
$msg_box2 = MsgBox(1 + 262144, $bottitle, $putinsecondpowerbit_text)
If $msg_box2 == 1 Then
$powerbit2_chksum = PixelChecksum($Inventory_Pos[0] + 155, $Inventory_Pos[1] + 68, $Inventory_Pos[0] + 200, $Inventory_Pos[1] + 85)
IniWrite("config.ini", "REVERSEBOT", "POWERBIT2CHKSUM", $powerbit2_chksum)
EndIf
EndIf
EndIf
EndFunc