Okay nearly there.. I was able to get the pid of some windows (namely, xterm), but when I tried it on chrome or nedit, getproperty returns with nitems == 0. Is there a reason why, and would there be workarounds for this? I just need a way to identify a window as "xterm", or "nedit" or "chrome".
My nedit windows, right now, don't have "nedit" as title. Then again I guess I could make it so it does, but that seems like a "hacky" solution.. On Sun, Mar 7, 2010 at 12:26 AM, Terry Barnaby <[email protected]> wrote: > It would be worthwhile looking at the XRecord extension. > http://www.xfree86.org/current/recordlib.pdf > > This is designed to record all XEvents as well as XRequests. It will > probably do most of what you required. We used it for a Blind/Visually > impaired XTerminal some time back. > > Terry > > > On 06/03/10 11:30, Yose Widjaja wrote: > >> Also, while I'm at it.. is there an easy way to print keysyms? I mean, >> looking at keysymdef.h there seems to be 2300 of them. Is there an X >> function to return the string of the name, or should I just go ahead and >> convert all those #defines into a switch statement? >> >> On Sat, Mar 6, 2010 at 10:19 PM, Yose Widjaja <[email protected] >> <mailto:[email protected]>> wrote: >> >> Ah, thanks. Will be taking a look at that. >> >> As for intercepting keyboards, I've hacked up something that uses >> XQueryKeymap, and it seems to be working pretty well. Now only for >> mouse movement detection (for idling check) >> >> Cheers >> >> p.s is making a keylogger meant to be this easy? >> >> >> On Sat, Mar 6, 2010 at 10:11 PM, Tomasz Torcz <[email protected] >> <mailto:[email protected]>> wrote: >> >> On Sat, Mar 06, 2010 at 06:22:29PM +1100, Yose Widjaja wrote: >> > Hi All, >> > >> > Is this possible using Xlib? I'm trying to implement >> something like >> > RescueTime, an app to measure productivity, but for linux. >> The main purpose >> > of this is to measure how much time (and keypresses and >> clicks) I spend in >> > xterm and nedit compared to firefox.. >> > >> > So is it possible to 1) get the actual binary name behind a >> window, 2) >> > intercept keypresses/mouse movements and re-relay them? Any >> info will be >> > much appreciated. >> >> You could try to find som esource of Mugshot application by >> Red Hat. >> It was collecting information like that and making statistics of >> most >> used applications. IIRC, it was using libwnck to do the X11 part. >> >> -- >> Tomasz Torcz "God, root, what's the difference?" >> xmpp: [email protected] <mailto:[email protected]> "God is >> >> more forgiving." >> >> _______________________________________________ >> xorg mailing list >> [email protected] <mailto:[email protected]> >> >> http://lists.freedesktop.org/mailman/listinfo/xorg >> >> >> >> >> -- >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Yose Widjaja >> Supreme Emperor @ Jormy Games >> www.jormy.com <http://www.jormy.com> >> [email protected] <mailto:[email protected]> >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> >> >> >> >> -- >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Yose Widjaja >> Supreme Emperor @ Jormy Games >> www.jormy.com <http://www.jormy.com> >> [email protected] <mailto:[email protected]> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> >> >> >> >> _______________________________________________ >> xorg mailing list >> [email protected] >> http://lists.freedesktop.org/mailman/listinfo/xorg >> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Yose Widjaja Supreme Emperor @ Jormy Games www.jormy.com [email protected] -- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
