dolph Posted October 11, 2008 Share Posted October 11, 2008 Hi i want to make a very simple bot with autoit as the "brain" example code provided below Loop IfWinExist, Connected to "Play Money 4069908 - 5/10" WinActivate ; use the window found above { PixelSearch, Px, Py, 335, 63, 336, 65, 0x000000, 3, Fast if ErrorLevel { IfWinExist, Connected to "Play Money 4069908 - 5/10" WinActivate ; use the window found above WinWait, Play money 4069908 - Hold'em - 5/10, IfWinNotActive, Play money 4069908 - Hold'em - 5/10, , WinActivate, Play money 4069908 - Hold'em - 5/10, WinWaitActive, Play money 4069908 - Hold'em - 5/10, MouseClick, left, 244, 475 Sleep, 100 } else WinWait, Play money 4069778 - Hold'em - 5/10, IfWinNotActive, Play money 4069908 - Hold'em - 5/10, , WinActivate, Play money 4069908 - Hold'em - 5/10, WinWaitActive, Play money 4069908 - Hold'em - 5/10, MouseClick, left, 257, 484 Sleep, 100 } #p::Pause I have got it to click the right button fold but have a problem with the loop and now also with the click i thought it would be easier to do it this way than simply check color of ClassNN 327701 if red fold else goto next and click green Any suggestions would be greately appreciated pleace test the code before post the full project will be posted here free of charge when ready and offcourse with GUI Have A great Day Dolph Link to comment Share on other sites More sharing options...
TehWhale Posted October 11, 2008 Share Posted October 11, 2008 This isn't AutoIt. Wait, or is it? This looks like very very very old code. Maybe you should try upgrading to the latest version. Link to comment Share on other sites More sharing options...
zzpot Posted November 4, 2008 Share Posted November 4, 2008 HiLo Dolph You are missing really alot......if you are wrtiing a script for the first time well you have shown some of the basics...... But Poker scripts for or using Poker Inspector as the brain have come alot further and alot easier to understand once you see a good one. Which site are you playing and maybe I can help you out. zzpot Link to comment Share on other sites More sharing options...
bogQ Posted November 4, 2008 Share Posted November 4, 2008 (edited) This isn't AutoIt. Wait, or is it? This looks like very very very old code. Maybe you should try upgrading to the latest version.i know whats thatis its "autohotkey script" and i dono whats his trying to do with that heareas far as know this is autoit forum not autohotkey and zzpot before posting pls look at the date first this post is old like hell Edited November 4, 2008 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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