Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help with mouse click command

$
0
0
ok i am rather new to Autoit, i have looked over the help section but i cant put my finger on why my script isnt working the way i need it to. A little help to set me in the right direction would be much appreciated.

What I am trying to do is tell my mouse to move to position 860, 615 and left click. but only if a mouse cursor exist. If the mouse cursor does not exist then hit the alt key until the cursor appears.

This is what I have come up with by reading the guides, but it isn't working as intended.

[ autoit ]      
Global $Cursor = MouseGetCursor () While 1 Do Sleep ( 1000 ) Until MouseGetCursor ( ) = 2 WEnd If $Cursor = 2 Then send("{ALTDOWN}") sleep(100) MouseClick("left",860,615,1,0) sleep(100) send("{ALTUP}") sleep(1000)

This is for a utility program i am trying to test. I hope autoit will make it easier for me to click through it.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>