LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Cannot locate cursor ID in X for capture script (https://www.linuxquestions.org/questions/programming-9/cannot-locate-cursor-id-in-x-for-capture-script-432862/)

smudge|lala 04-07-2006 08:26 PM

Cannot locate cursor ID in X for capture script
 
I take many screen shots through a multitude of commands, so I am quite familiar with the common commands related to it and have been working on a script to automate my captures and encoding. My difficulty is trying to capture the cursor as well. I don't know if this is possible, but assume it is as VNC (sometimes) displays the cursor and Istanbul captures it.

I tried

$ xwininfo -tree to see if I could get all the identifiers including the cursor, then do a process of ellimination to find which one the cursor was. No luck!

I thought if I could find the cursor identifier, even if I couldn't capture the screen and cursor at once, I could take them seperately, and then $ mogrify the two images together. No luck as I can't identify the cursor! Any tips anybody?

I've been playing around with Wink on Linux for a bit. A nice program for many, but I still prefer to use the shell and Image Magick as a simple script will do what a zillion mouse clicks will do in Wink. The point to note however, is that Wink does capture the cursor, and as it's on the screen, it must have a process ID or other identifier. If there's any X guru or programmer out there, any tips on how I might capture a screen shot with the cursor, I would be most grateful!


All times are GMT -5. The time now is 11:55 AM.