Sign in to follow this  
Followers 0
frixionburne

Enabling a script when cursor enters a certain area

2 posts in this topic

I need to enable a script when the mouse enters a certain area of the screen.

For example: while the mouse is outside a certain box in the lower left/ right/ whatever corner of the screen, the rightclick button acts as it usually would, when the mouse enters that area, the rightclick becomes a function hotkey (hotclick?).

Share this post


Link to post
Share on other sites



MouseGetPos() to check where the mouse is.

WinActive() to see if the desktop is focused.

_IsPressed() to see if the right mouse button is clicked.

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