peterpbrown

Autoit simple time delay help ?

7 posts in this topic

#1 ·  Posted (edited)

Hi im new to autoit and need a simple function, i think

what I have is below

HotKeySet("{ESC}", "Terminate")
While 1
MouseClick("left", 1300, 785, 1, 14)
MouseClick("left", 463, 704, 1, 32)
MouseClick("left", 995, 545, 1, 14)
MouseClick("left", 848, 604, 1, 25)
MouseClick("left", 676, 592, 1, 10)
MouseClick("left", 887, 608, 1, 0)
WEnd
Func Terminate()
    Exit 0
EndFunc

 

I want to then add another function after a 10 mintute delay that allow three more mouse clicks to happen , then repeat. but i want the above mouce clicks still to be happening in the 10 minute delay ?

 

any help would be appreciated, and sorry if im being a retard lol

Edited by peterpbrown

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

still doesn't make sense tbh

 

Edited by peterpbrown

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum!
Can you please tell us which program you try to automate?
MouseClick depends on screen resolution and window position so it is - in most cases - not very reliable. Most of the time there are other ways to do what you want to do.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

im trying to auto the fifa 16 web app

Share this post


Link to post
Share on other sites

That's what I feared!
You seem to have missed to read the forum rules on your way in. Please do so now!
Game automation of any kind is not permitted on this forum.

Hope to see you soon with a legitimate question :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

im trying to auto the fifa 16 web app

:D I laugh everytime


I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

Share this post


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