Jump to content

How starting with autoit scripts?


 Share

Recommended Posts

Hi guys, how are you?

So, i would like to start develop with autoit scripts. I would like to make a script that:

- Click and keep press the mouse right button 15minutes. After re-click and keep press the mouse right button .... continuously

- continuously clicking the space button of keyboard

How can i do this? I already downloaded the autoit program.

thx!!

Link to comment
Share on other sites

Wow, you even already downloaded the program!

Anyhow:

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Send("{SPACE}")

While True 
    MouseDown("right")
    Sleep(15*60*1000)
    MouseUp("right")
    Sleep(10)
WEnd

If you need the space clicking to happen in a loop as well either add it to the same loop or put it in another, separate script and run both scripts.

Edited by Torx
Link to comment
Share on other sites

Welcome to the wonderful world of AutoIt!!

The first step is to read the manual. Without a manual, life would be chaos. (as well as this forum)

And after you've read the manual, head on over to the Example Scripts forum, and see what you can dig up. Find a short and simple script that you like, and modify it!

Happy scripting!

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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