n0pr0bl3m Posted April 1, 2013 Posted April 1, 2013 (edited) So I have some timers which I reset periodically, but my problem is that they don't wait for the functions before them to finish and in a strange way reset beforehand. -snip- timerinit doesnt wait the mouseclick and sleep functions to finish Edited April 1, 2013 by Jos
water Posted April 1, 2013 Posted April 1, 2013 Can you please tell us which program you try to automate? Your code looks rather complex. Maybe there is a simpler way of doing what you want to do. 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
kylomas Posted April 1, 2013 Posted April 1, 2013 Also,Which timer and what does this mean?timerinit doesnt wait the mouseclick and sleep functions to finishkylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Gianni Posted April 1, 2013 Posted April 1, 2013 Hi n0pr0bl3m why you say "timerinit doesnt wait the mouseclick and sleep functions to finish" from your script it seems that the timer must be correctly reset at the end of the "MouseClicks + Sleeps" sequence. how do you measure that is not so and that it resets before? Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
n0pr0bl3m Posted April 1, 2013 Author Posted April 1, 2013 (edited) Hi n0pr0bl3m why you say "timerinit doesnt wait the mouseclick and sleep functions to finish" from your script it seems that the timer must be correctly reset at the end of the "MouseClicks + Sleeps" sequence. how do you measure that is not so and that it resets before? I put a traytip which i update in the while loop every one second and after the clciks and sleeps it says something like 50...51...52...53 and that means my timer was reset earlier. strange? huh? This goes in the while loop TrayTip("", Int( TimerDiff($oneHourTimer)/1000), 1 ) Edited April 1, 2013 by n0pr0bl3m
water Posted April 1, 2013 Posted April 1, 2013 Again: Can you please tell us which program you try to automate? For me your script doesn't make sense at the moment 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
n0pr0bl3m Posted April 1, 2013 Author Posted April 1, 2013 It's flash content. I don't see any other way of automating this.
water Posted April 1, 2013 Posted April 1, 2013 Flash Content? Which kind of Flash content do you need to automate? 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
kylomas Posted April 1, 2013 Posted April 1, 2013 (edited) I put a traytip which i update in the while loop every one second and after the clciks and sleeps it says something like 50...51...52...53 and that means my timer was reset earlier. strange? huh?Does it?We won't know unless we see ALL the code...better, answer water's question, there may be better alternatives......snif...snif...snif...kylomasedit: I see you answered, somewhat, while I was posting Edited April 1, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
water Posted April 1, 2013 Posted April 1, 2013 Did you read the forum rules? Link can be found in the lower right corner of this page. 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
n0pr0bl3m Posted April 1, 2013 Author Posted April 1, 2013 I also tried to move the timer reset before the mouseclicks too see the difference.... and guess what.... THERE IS NO DIFFERENCE
water Posted April 1, 2013 Posted April 1, 2013 And you think "Launching, automation or script interaction with games or game servers, regardless of the game." doesn't apply to you? 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
kylomas Posted April 1, 2013 Posted April 1, 2013 ...snif...snif...snif...You can almost smell them comming... Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
water Posted April 1, 2013 Posted April 1, 2013 I know, I called them 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
n0pr0bl3m Posted April 1, 2013 Author Posted April 1, 2013 (edited) And you think "Launching, automation or script interaction with games or game servers, regardless of the game." doesn't apply to you?GAME SERVERS? HAHAHAHAHA!!! OFFLINE GAME!!!!I cant automate an offline game? what can i automate then? ms paint? Edited April 1, 2013 by n0pr0bl3m
water Posted April 1, 2013 Posted April 1, 2013 Read it again: "games OR game servers, regardless of the game". No talking about on- or offline. And please: Don't shout! 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
n0pr0bl3m Posted April 1, 2013 Author Posted April 1, 2013 (edited) Okay, from now on I will only use AutoIt to automate games. I will also give my best to find a solution and finally automate this game. AutoIt is so good at doing this. Thank you. PS: If you suspend my account on your website I will still be able to download AutoIt and automate games Edited April 1, 2013 by n0pr0bl3m
Recommended Posts