Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted

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

Posted

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

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
×
×
  • Create New...