B4J Question How to include mouse cursor (at its screen location) when capturing B4J application screenshots?

m4.s

Member
Licensed User
Longtime User
I've implemented a screen capture feature in my application using some of the code provided in this thread:

B4J Question - Screen capture. | B4X Programming Forum

However, this does not include the mouse cursor at its screen location (at the time of screen capture).

When researching 'java.awt' toolkit/robot related functionality, I was discouraged to find that it simply cannot support. So, I'm wondering if anyone has found an alternative solution which can.

Thanks in advance for any suggestions.
 

Sandman

Expert
Licensed User
Longtime User
I remember reading something about getting the mouse position and then overlay the screenshot with a mouse pointer. (No idea if that's how it's usually done, just something I read long ago.)
 
Upvote 0

m4.s

Member
Licensed User
Longtime User
Thank you for your quick feedback Sandman. I had already considered doing that, and may have to. But it's what I consider a hack which I'd prefer to avoid if another option is available.

Hoping some other members can provide feedback...
 
Upvote 0
Top