ledanh89 Posted December 16, 2011 Posted December 16, 2011 I having a problems and need for ur help. I want: when the game show this picture (My attach file), AutoIt will do a MouseClick. And this is my code:Dim $a= PixelGetColor (x1,y1) Dim $b= PixelGetColor (x2,y2) Dim $c= PixelGetColor (x3,y3) const $a1=0xDDCB9C const $b1=0x612E20 const $c1=0xA5211F Do If $a=$a1 And $b=$b1 And $c=$c1 Then Sleep (0) MouseClick ("", 341,535,1,100) EndIf Until $a=$a1 And $b=$b1 And $c=$c1x1,y1: postion of a point of the picture on the screenAlthought there's have no error, it's still not working . I think the problems maybe that: this picture appeared in only 0,01 second, and the Loop statement's frequence of Autoit is't fast enoughWhat should I do now? If any ways else for Autoit does a Mouseclick when this picture appear, plz show details to me. Sorry about my English, and my code, I'm bad at bothuntitled.bmp
water Posted December 16, 2011 Posted December 16, 2011 (edited) Welcome to AutoIt and the forum!First thing a new user needs to do is read the forum rules.You will realize that game automation is a big NO here Edited December 16, 2011 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Dana Posted December 16, 2011 Posted December 16, 2011 Somehow I knew as soon as I saw "plz" in the topic list that it would be game related...
Blue_Drache Posted December 16, 2011 Posted December 16, 2011 Dana: Not just the "plz" but the wonderfully descriptive topic that isn't vague at all. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
ledanh89 Posted December 16, 2011 Author Posted December 16, 2011 Sr, I were not good at E so that I didn't read forum rules. So, I hope Mod or Admin would close that topic now, It's useless
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