anonimni Posted August 30, 2008 Share Posted August 30, 2008 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 More sharing options...
TehWhale Posted August 30, 2008 Share Posted August 30, 2008 (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 August 30, 2008 by Alienware Link to comment Share on other sites More sharing options...
DobraGolonka Posted August 30, 2008 Share Posted August 30, 2008 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 clickPlease 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 More sharing options...
TehWhale Posted August 30, 2008 Share Posted August 30, 2008 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.DGThousands. Link to comment Share on other sites More sharing options...
anonimni Posted August 30, 2008 Author Share Posted August 30, 2008 WHOAH Lightspeed replies! Now I know I came to the right community So I just use the search? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now