Jump to content

Recommended Posts

Posted

Hi guys..a newbie here

I'm trying to make a script that will click 3 (keyboard) and 4 every 1 minute as below

#include <Misc.au3>

While 1

Send("{3}")

Sleep(2000)

Send("{4}")

Sleep(62000)

WEnd

It seems to do what I want to at first then the script pause and nothing happens after that..

Could someone help me out with this?

thanks

Posted

While/WEnd isn't a loop? Sure it is!

It's the other way round. The script will never stop because there is no ExitLoop or Exit statement.

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...