Sign in to follow this  
Followers 0
Isper

Just got Autoit, and need some help

7 posts in this topic

#1 ·  Posted (edited)

Hey All

I just got Auto it and i need some help with looping a macro. I just need something that will click serten spots on screen. i know how to get the X and Y axis, i just need to know how to make the macro loop, and what the command is to Left click.

Edited by Isper

Share this post


Link to post
Share on other sites



Hey All

I just got Auto it and i need some help with looping a macro. I just need something that will click serten spots on screen. i know how to get the X and Y axis, i just need to know how to make the macro loop, and what the command is to Left click.

Hi!

This is very easy.

Have a quick look on the following functions in the help file shipped with your installation:

- MouseClick

- For / Do / While

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

so th make the macroit work be

- MouseClick X# Y#

and at the end

- For / Do / While

???

Share this post


Link to post
Share on other sites

In the help file that comes with AutoIt, go to the Index tab and type in the name of the command you want to find out about (like MouseClick). Then double-click the highlighted term to display its topic. Also, to get an overview of those looping functions, go to AutoIt > Language Reference > Loop Statements in the table of contents. When looking at any help topic, there will be an example script at the bottom of the page, which is a big help if you don't quite understand something.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i had trouble with getting the loop part for my first time even with thoese examples with autoit but what i usually do is to make it loop forever is

While 1
;code
WEnd

and for a left click

just do

Mouseclick("left", x, y)

but allways check the help files they are life savers

Edited by lopolop

Share this post


Link to post
Share on other sites

ok im still not 100% sure, but so for the macro it would be

Mouseclick("left", x, y)

Mouseclick("left", x, y)

While 1

;code

WEnd

????

ps, i used the help find, but i couldnt find anythign that helped me

Share this post


Link to post
Share on other sites

While 1

Moouseclick("left", x, y)

WEnd

That is the loop

Share this post


Link to post
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
Sign in to follow this  
Followers 0