Sign in to follow this  
Followers 0
PopSmith

MouseClicking - A question

4 posts in this topic

Hey everyone :lmao: I have been messing with AutoIt and I noticed you can have the script autoclick for you.

I pulled up the "Active Window Info" thing and noticed in the "Mouse Details" that below the X and Y places it has a "Cursor ID".

My question is, how can I make something like this:

Move mouse to X:500 Y:480
If Cursor ID is 2 Then "LeftClick" Else send Control-R
EndIf
Sleep(5000)

Share this post


Link to post
Share on other sites



Hey everyone ;) I have been messing with AutoIt and I noticed you can have the script autoclick for you.

I pulled up the "Active Window Info" thing and noticed in the "Mouse Details" that below the X and Y places it has a "Cursor ID".

My question is, how can I make something like this:

Move mouse to X:500 Y:480
If Cursor ID is 2 Then "LeftClick" Else send Control-R
EndIf
Sleep(5000)
what parts of autoiot have you been messing with that didn't require any clicking or sending? :lmao:

MouseMove(500,480)
sleep(500)
If MouseGetCursor()= 2 Then
    MouseClick("left",500,480)
Else
    Send("^r")
EndIf

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Thanks, I know how to work the "Sending" part of AutoIt, I was just not completely sure on how to use the "Cursor ID" part of the Mouse Details.

Share this post


Link to post
Share on other sites

Thanks, I know how to work the "Sending" part of AutoIt, I was just not completely sure on how to use the "Cursor ID" part of the Mouse Details.

np, i was just curious, because i know when i first started using autoit those were probably the FIRST two i used, then expanded from there; so i thought maybe you'd started using it for something else, and had a different learning path (like you got into it for file I/O or something else, and are now trying to pick up the other stuff). blah, no biggie. glad i could help, and welcome to the forums.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0