ink Posted November 22, 2007 Share Posted November 22, 2007 (edited) Hi. everytime im running my script is a differnt value of the pixelchecksum i really dkn whats wrong expandcollapse popupOpt("MouseCoordMode", 2) Opt("PixelCoordMode", 2) HotKeySet("{ESC}", "Terminate") ;variables... $PCheckSum = 1314899972 $box_size = 30 $num_of_rows = 4 $num_of_columns = 10 $InvStartY = 319 $InvKey = "i" Func inventory($key) send($key) EndFunc WinActivate("b") inventory($InvKey);open inventory For $rows = 1 To $num_of_rows step +1 $InvStartX = 435 For $cols = 1 to $num_of_columns step +1 MouseMove($InvStartX, $InvStartY, 10) $sum = PixelChecksum($InvStartX, $InvStartY, $InvStartX+$box_size, $InvStartY+$box_size) ConsoleWrite("I koordinat (" & $InvStartX & "," & $InvStartY & ") er pixelchecksummen " & $sum & " (Hex=" & Hex($sum, 6) & ")") If $sum = $PCheckSum Then ConsoleWrite(" (Venstre musseknaip aktiveret)" & @LF) MouseClick("left", $InvStartX, $InvStartY, 2, 10) MouseClick("left", 100, 100, 1, 10) EndIf $InvStartX = $InvStartX + $box_size Next $InvStartY = $InvStartY +$box_size Next Func Terminate() exit EndFunc Edited November 22, 2007 by ink Link to comment Share on other sites More sharing options...
ink Posted November 22, 2007 Author Share Posted November 22, 2007 Anyone?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now