Originally Posted by
Akownerz
To OP: I am receiving the same error as ibchucklee, if you know any solution (with walk-through for us new to coding, that'd be stellar.) It completes a run perfectly, goes to town, logs out, and sits.
The lines that look like these "If Hex($Pixeltestgm, 6) == "621610" Then" need to be edited with the proper hex color codes on your system. Use Autoit Window Info to check the hex color codes on your windows. The error may be because your in-game graphics are set too low.
Code:
Func MainMenu() ;verifies the screen is at the main menu before attempting to start the next game to avoid getting trapped in menus.
Local $Menu = False
While $Menu = False
$Pixeltestmm = PixelGetColor(Round(251*$x_ratio), Round(284*$y_ratio)) ;tests for main menu
If Hex($Pixeltestmm, 6) == "683C02" Then
$Menu = True
Else
$Pixeltestgm = PixelGetColor(Round(937*$x_ratio), Round(246*$y_ratio)) ;checks if game menu is open
If Hex($Pixeltestgm, 6) == "621610" Then
Send("{Escape}") ;return to main menu
$Menu = True
Else
$Pixeltestgmexit = PixelGetColor(Round(975*$x_ratio), Round(428*$y_ratio)) ;checks if exit game menu is open
If Hex($Pixeltestgmexit, 6) == "FFA300" Then
Send("{Escape}")
Send("{Escape}")
$Menu = True
Else
$Pixeltestbm = PixelGetColor(Round(958*$x_ratio), Round(150*$y_ratio)) ;checks if banner customization window is open
If Hex($Pixeltestbm, 6) == "933618" Then
Send("{Escape}")
$Menu = True
Else
$Pixeltestpm = PixelGetColor(Round(1506*$x_ratio), Round(138*$y_ratio)) ;checks if player window is open
If Hex($Pixeltestpm, 6) == "320c08" Then
Send("{Escape}")
$Menu = True
EndIf
EndIf
EndIf
EndIf
EndIf
WEnd
EndFunc
Did you follow all the instructions in the OP?