Jump to content

Is AutoIt able to emulate clicking and typing?


Recommended Posts

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 ;)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. ;)

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...