Jump to content

Recommended Posts

Posted

I have a script that _MouseTraps() within the entire window. Works quite well. What I want to do, however, is _MouseTrap() in the Client Area. The one thread I did find only said that the example did just that but I can't find the example that was referred to.

Playing with the AutoItSetOption("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client doesn't seem to effect where the mouse is trapped. It is always trapped in the whole window. I am using WinGetPos and Mouse Trapping on the results.

Can someone point me to an example or documentation on how to MouseTrap in the Client Area?

Thanks!

Posted

No joy. I have a small notepad window. Left, Right, Top and Bottom are 0 547 0 394

No matter where I move that notepad window Left, right, top and bottom never change. Can't mouse trap on that. If I shrink or expand the windows the right and bottom change but the left and top are always 0,0

Posted

I think a little confusion comes from the coordinates returned by the GetClient area functions. It always returns 0,0 for the upper left. That is fine but .... how do you MouseTrap relitive to a Window and not the full screen? Is there a better mouse trap LOL?

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
×
×
  • Create New...