Jump to content
Sign in to follow this  

how can you if mouse is in pos and down then

Recommended Posts


Not in bounds. You mean, in a certain rectangular area on the screen? Just use mouse get pos, and check its coordinates. If xpos > 0 and xpos < 10 and ypos > 0 and ypos < 10 Then do something, bla bla bla.

Also, next time.. take a little more time to formulate your question. A few more sentences from you can alleviate a lot of confusion and make it easier for people to answer your questions.

EDIT: I see NOW that, you wanted to know if the mouse button was pressed down. Use _IsPressed like w0uter said.

Edited by Simucal

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.