Jump to content
Sign in to follow this  
anonimni

Is AutoIt able to emulate clicking and typing?

Recommended Posts

anonimni

Hi.

I am completely new to AutoIt and after trying some simple examples, I've decided to try something useful.

I need to know if AutoIt is able to:

-Emulate a click

-Track a mouse (display mouse's coordinates) - I need this to be able to know what coordinates to imput to emulate a click

Please help me and also post some useful code.

P.S.: If you know a program that you can program (e.g. create a series of points to be clicked in an order by it automaticaly) to click for you, please inform me.

Saves me lots of time ;)

Share this post


Link to post
Share on other sites
TehWhale

Very simple script that does what you need!

While 1
    Sleep(10)
    $Positions = MouseGetPos()
    ToolTip("X="&$Positions[0]&@CRLF&"Y="&$Positions[1])
    If $Positions[0] = 0 And $Positions[1] = 0 Then MouseClick("left", 500, 500)
WEnd

Move your mouse to the top-left, and it will move and click your mouse to 500/500

Edited by Alienware

Share this post


Link to post
Share on other sites
DobraGolonka

Hi.

I am completely new to AutoIt and after trying some simple examples, I've decided to try something useful.

I need to know if AutoIt is able to:

-Emulate a click

-Track a mouse (display mouse's coordinates) - I need this to be able to know what coordinates to imput to emulate a click

Please help me and also post some useful code.

P.S.: If you know a program that you can program (e.g. create a series of points to be clicked in an order by it automaticaly) to click for you, please inform me.

Saves me lots of time ;)

The answer is yes, it does everything you require.

But, I suggest you look through the forums some more: they are packed with literally hundreds of examples that will help you.

And don't forget, the AutoIt helpfile is your best friend.

DG

Share this post


Link to post
Share on other sites
TehWhale

The answer is yes, it does everything you require.

But, I suggest you look through the forums some more: they are packed with literally hundreds of examples that will help you.

And don't forget, the AutoIt helpfile is your best friend.

DG

Thousands. ;)

Share this post


Link to post
Share on other sites
anonimni

WHOAH

Lightspeed replies! Now I know I came to the right community ;)

So I just use the search?

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  

×