B4J Question Mouse Event (getX and getY) in trasparent area

micro

Well-Known Member
Licensed User
Longtime User
Hi to all, another question.
How can I get the X and Y position of the Mouse event even in transparent areas?
I have a fullscreen program but when I hover over a transparent zone the X and Y coordinates do not update.
Thanks
 

kimstudio

Active Member
Licensed User
Longtime User
I think that is already possible using the jAWTRobotClass
I checked this and it seems we have to capture the whole screen, then show the captured screen image in a full screen form, draw rect of mouse dragged, cut that image and show in mainform - we have to deal with how to draw mouse dragged rectangle in transparent area issue.

Or use the method I mentioned: make a full screen mainform with alpha = 0.1, interact with mouse dragging in mainform to get rect, hide mainform, use robot to capture whole screen and cut the image in rect.

Maybe I am thinking in a complicated way and there is a simple solution...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…