Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exclude from RECT?
#1
Hi Gintaras,
Fantastic work on BlockInput2 updates - thank you so much!!!

Maybe this is already in there but rather than limiting user to a specific RECT area, is it possible to exclude the mouse from going into a RECT area.
or for irregular shapes can you combine RECT i.e. don't go into either RECT1 or RECT2 or stay in RECT1 and RECT2

Thanks so much!
Stuart
#2
Function ClipCursor restricts mouse to inside a simple rectangle. To do what you need, I would use hooks, like with BlockInput2 function.

To do calculations, I would use functions:

PtInRect
PtInRegion
other region functions

They are documented in the MSDN Library.
#3
I will give it a try - I will have to learn more about hooks.

Thanks again for all your fantastic work on this program!

Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)