Sign in to follow this  
Followers 0
anonymousB

MouseClick funcion and familiar.

2 posts in this topic

#1 ·  Posted (edited)

I'll go straight to the point:

Posted Image

Posted Image

Well, is there a possibility of making it more universal? I mean something like fixed clicks instead of absolute ones.

Default clicking works like this:

Move cursor 181 pixels from left screen border and 237 pixels from top screen border. Click.

And, I want to make a script for many different computers and resolutions so I'd love something like:

If Window named "XYZ" is active move cursor 10 pixels below the window's title bar and 2 px right from left window's border.

How to do this?

Thanks in advance.

PS. Maybe ControlGetPos will help? But how to use it with clicks?

Edited by anonymousB

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Before "Going Straight to the point"

Try having a look around the helpfile for some basic information

There are a number of ways you can achieve your goal

Start by looking at MouseCoordMode option

And remember, it simple you just try some code and test it, your PC will not blow up.

Hi, welcome to the forum.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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