Jump to content
Sign in to follow this  
n0pr0bl3m

I need help with TimerInit function

Recommended Posts

n0pr0bl3m

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 by Jos

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
kylomas

Also,

Which timer and what does this mean?

timerinit doesnt wait the mouseclick and sleep functions to finish

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

Share this post


Link to post
Share on other sites
Chimp

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?


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
n0pr0bl3m

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 by n0pr0bl3m

Share this post


Link to post
Share on other sites
water

Again: Can you please tell us which program you try to automate?

For me your script doesn't make sense at the moment :huh:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
n0pr0bl3m

It's flash content. I don't see any other way of automating this.

Share this post


Link to post
Share on other sites
water

Flash Content? Which kind of Flash content do you need to automate?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
kylomas

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...

kylomas

edit: I see you answered, somewhat, while I was posting

Edited 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

Share this post


Link to post
Share on other sites
n0pr0bl3m

THIS IS ALL THE CODE FFS!

Share this post


Link to post
Share on other sites
n0pr0bl3m

Its an offline flash game.

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
n0pr0bl3m

I also tried to move the timer reset before the mouseclicks too see the difference.... and guess what.... THERE IS NO DIFFERENCE

Share this post


Link to post
Share on other sites
n0pr0bl3m

I did

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
kylomas

...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

Share this post


Link to post
Share on other sites
water

I know, I called them ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
n0pr0bl3m

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 by n0pr0bl3m

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
n0pr0bl3m

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 by n0pr0bl3m

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Similar Content

    • mrtgtr
      By mrtgtr
      I want to do something , after wait 2 min and again do same thing
      But I do do not want with sleep, it must be timer 
      How I do this ?
    • Emmhor1
      By Emmhor1
      Hi All,

      MAIN QUESTION:
      Is it possible to Call specific function within a GUI

      So I have a script with multiple functions although I don't want to use every function every time.
      My Idea is to create a simple GUI which allows me to select what functions I want to use then run the funtions by clicking a button.
      I have already made a GUI which allows me to select specific .exe's I would like to run after selection it runs the .exe one by one.
      This script is on my work laptops and cannot access it right now.
       
      Who can help me with this?
      GUIcreate
      Func1 
      Func2
      Func3
      Then have a boxes which allows me to select the specif Func.(I used GUIChecked and Unchecked in my other script)
      Then a button which executes/calls the selected functions
    • Lecdev
      By Lecdev
      does anyone know what exactly TimerDiff() is doing with the integer returned by TimerInit() in order to get milliseconds?
       
      Just trying to find out if i can use the integer timerinit() returns in a slightly different way to the norm because it will save me a great deal of effort.
       
      ( hoping to save the integer in a db and query rows where the difference in current time integer is > x where x = whatever the integer needs to be to = y hours )
       
       
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good evening everyone
      I was trying to insert function header to the functions of my script, but, in the SciTE console, this appears:
      Function or struct definition not found, unable to insert header. @Jos Any suggestion?
      Thanks in advance.

      Best Regards.
×