Sign in to follow this  
Followers 0
cougarelite

Need Some Help

3 posts in this topic

Hey everyone,

I am creating an AutoIt script, just for a challenge when I'm bored, but I'm not even sure if it's possible. What I'm trying to do is automate the blackjack dealing on DealerSim. DealerSim is a program designed to train casino blackjack dealers. I have a picture attached of what the program looks like.

So far my script:

- figures out which seats have players in them

- deals out the two first cards to the players and the dealer

It's not very much, and I've already come up with a problem. For the next step, I need AutoIt to recognize which card the dealer has been dealt. It only matters if it's a Ten or an Ace, in case that makes it any easier. As you can see in the picture, not much of this card is showing, but yeah I need AutoIt to be able to tell when it's a Ten or an Ace. I'm pretty clueless on how to do this. Does anyone have any ideas?

Thanks,

CougarElite

post-3667-1165898103_thumb.jpg

Share this post


Link to post
Share on other sites



Maybe you could just capture the part of the screen which shows just the top left of the card and compare it to a previous capture of an ace or a ten. I would just compare every character in the files and as soon as there was a difference stop. You would need example captures of all 4 aces and all 4 tens.

Have a look at

http://www.autoitscript.com/fileman/users/Lazycat/dlls.html


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Look around the forum for OCR(optical character recognition) libraries. People use scripts to recognize characters and symbols in pictures quite frequently. You should get a lot of results, especially in the Example Scripts forum.


"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

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