Try using postEvent instead of sendEvent. But now you won't be able to see if it was accepted. Also you need to create the events on the heap.
Regards
Try using postEvent instead of sendEvent. But now you won't be able to see if it was accepted. Also you need to create the events on the heap.
Regards
shyam prasad (17th April 2007)
In addition to what wysota said -Here my assumption was that this code should send an "Alt + PrintScreen" button press to the desktop widget which in effect should dump the "active window image" to the ClipBoard.
I don't think this assumption of yours is correct.
I would be surprized if the desktop it self was resposible for reacting to the key combination - and in this case dump a screen shot to the clip board.
I would expect it to be done by the windowing system, not by a window.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
shyam prasad (17th April 2007)
Bookmarks