Jump to content

Recommended Posts

Posted

ok well im a noob >.< anyways ive read through the help file and stuff and i have been able to make autoit click where i want it to.

MouseClick("left", 736, 610, 2)

ok but how do i make it do it at given intervals say for example every 60 seconds untill i tell it to stop? any help that you guys can give me here would be greatly apreciated. there would obviously have to be a stop function or it would click there every 60 seconds forever right?

Posted

hmm how about

Hotkeyset("{esc}", "stop")

Do
   Sleep(60000)
   MouseClick("left", 736, 610, 2)
Until $i = 1

Func stop()
   $i = 1
Endfunc

I was going to set esc to exit, but I thought you might have more to add on

Posted

also.. i get an error..

Until $i=1

Until^ERROR

Error: Variable used without being declared

<{POST_SNAPBACK}>

Typical error.

This works:

Dim $i
Hotkeyset("{esc}", "stop")

Do
  Sleep(60000)
 ;MouseClick("left", 736, 610, 2)
Until $i = 1

Func stop()
  $i = 1
Endfunc

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...