Sign in to follow this  
Followers 0
tom13

[SOLVED] How to find the same PixelChecksum but on an other location?

2 posts in this topic

#1 ·  Posted (edited)

Dear AutoITers,

I'm working on a poker bot that can recognize cards with a PixelChecksum, it looks like this:

$StatusSum = PixelChecksum(461,368, 472,393)
Sleep(1000)
If $StatusSum = "3636851779" Then 
    $Card2 = "Kc"
ElseIf $StatusSum = "3772234868" Then 
    $Card2 = "6s"
ElseIf $StatusSum = "3380399714" Then
    $Card2 = "5s"
ElseIf $StatusSum = "1939960646" Then 
    $Card2 = "Jh"
ElseIf $StatusSum = "2300003713" Then 
    $Card2 = "8h"
ElseIf $StatusSum = "935124409" Then 
    $Card2 = "4s"
ElseIf $StatusSum = "1390972689" Then 
    $Card2 = "7d"
ElseIf $StatusSum = "3331702641" Then 
    $Card2 = "9s"
ElseIf $StatusSum = "1810037692" Then 
    $Card2 = "Tc"
ElseIf $StatusSum = "3608393950" Then 
    $Card2 = "8s"
ElseIf $StatusSum = "2111056132" Then 
    $Card2 = "7c"
ElseIf $StatusSum = "1308694285" Then 
    $Card2 = "Jc"
ElseIf $StatusSum = "2139703521" Then 
    $Card2 = "Ah"
ElseIf $StatusSum = "311713299" Then 
    $Card2 = "4h"
ElseIf $StatusSum = "4086784557" Then 
    $Card2 = "5d"
ElseIf $StatusSum = "3459011545" Then 
    $Card2 = "5h"
ElseIf $StatusSum = "2927776725" Then 
    $Card2 = "8d"
ElseIf $StatusSum = "763199677" Then 
    $Card2 = "7h"
ElseIf $StatusSum = "4284439518" Then 
    $Card2 = "Kh"
ElseIf $StatusSum = "639619984" Then 
    $Card2 = "3s"
ElseIf $StatusSum = "3394295470" Then 
    $Card2 = "9c"
ElseIf $StatusSum = "3736169931" Then 
    $Card2 = "2d"
ElseIf $StatusSum = "3442992543" Then 
    $Card2 = "5c"
ElseIf $StatusSum = "1673287262" Then 
    $Card2 = "Ad"
ElseIf $StatusSum = "2951203646" Then 
    $Card2 = "Qc"
ElseIf $StatusSum = "647449059" Then 
    $Card2 = "9h"
ElseIf $StatusSum = "1580848696" Then 
    $Card2 = "Ac"
ElseIf $StatusSum = "2048463303" Then 
    $Card2 = "7s"
ElseIf $StatusSum = "1747444863" Then 
    $Card2 = "Ts"
ElseIf $StatusSum = "1853516207" Then 
    $Card2 = "Kd"
ElseIf $StatusSum = "3468617170" Then 
    $Card2 = "2c"
ElseIf $StatusSum = "3670986779" Then 
    $Card2 = "8c"
ElseIf $StatusSum = "154293817" Then 
    $Card2 = "6d"
ElseIf $StatusSum = "1102820809" Then 
    $Card2 = "Qs"
ElseIf $StatusSum = "1275222071" Then 
    $Card2 = "9d"
ElseIf $StatusSum = "3820505061" Then 
    $Card2 = "6h"
ElseIf $StatusSum = "799303073" Then 
    $Card2 = "3d"
ElseIf $StatusSum = "3970321768" Then 
    $Card2 = "Qd"
ElseIf $StatusSum = "2107260823" Then 
    $Card2 = "Qh"
ElseIf $StatusSum = "11825387" Then 
    $Card2 = "Td"
ElseIf $StatusSum = "612324347" Then 
    $Card2 = "2h"
ElseIf $StatusSum = "497598517" Then 
    $Card2 = "As"
ElseIf $StatusSum = "997717238" Then 
    $Card2 = "4c"
ElseIf $StatusSum = "2577006743" Then 
    $Card2 = "Js"
ElseIf $StatusSum = "702212813" Then 
    $Card2 = "3c"
ElseIf $StatusSum = "3834827697" Then 
    $Card2 = "6c"
ElseIf $StatusSum = "3678036631" Then 
    $Card2 = "Th"
ElseIf $StatusSum = "3803021591" Then 
    $Card2 = "Jd"
ElseIf $StatusSum = "611179981" Then 
    $Card2 = "Ks"
ElseIf $StatusSum = "642209625" Then 
    $Card2 = "4d"
ElseIf $StatusSum = "171530061" Then 
    $Card2 = "3h"
ElseIf $StatusSum = "3406024341" Then 
    $Card2 = "2s"
EndIfoÝ÷ Ù*'£$0«j·vÊ'+­ç§²-h!¶Úþ,¶Ë©¦§úhêã¦â­Ýp¢¹,{¶­ëæî¶Ø^>,^(^rD®¬¶ÞvÞ¢v×b}÷«z{e¡Æ­Ú³*.q©ìyè§+­ç§²-²!¢é]i×Zß±ëeG­+ºÚ"µÍÌÍÛÙÙ]HÌÍÛÙÙ]HHÌÍÔÝ]ÔÝ[HH^[ÚXÚÜÝ[J

H
È  ÌÍÛÙÙ]Í
È  ÌÍÛÙÙ]K

Ì
È  ÌÍÛÙÙ]ÎLÈ
È  ÌÍÛÙÙ]J

The problem is that I can't find the right values for $offsetx and $offsety - I tried alot of numbers but nothing appeared to be good... does anyone knows how I can find these offsets? Because a PixelCheckSum depends on every single pixel..

Edited by tom13

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

None else had this problem?

Maybe this ain't possible and the only possibility is creating a new database for the second card? That could be a problem since creating such a database takes alot, alot of hours...

EDIT:

found this imba UDF: http://www.autoitscript.com/forum/index.php?showtopic=48333

Will reply once I tested it :whistle:

EDIT2:

Found them thanks to the imba UDF, results:

$offsetx = 17
$offsety = 2
Edited by tom13

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0