Wow, that hasn't come up in my searching, thanks! <br>Looks like you are right and the project is dead, but the author did toss there code up for viewing so I can stumble around a bit there. <br><br><div><span class="gmail_quote">
On 11/3/06, <b class="gmail_sendername">Jonathon Sisson</b> &lt;<a href="mailto:sisson.j@gmail.com">sisson.j@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris,<br><br>I don't know if this has been mentioned yet, but this site might be useful:<br><br><a href="http://bdash.net.nz/blog/2003/12/24/python-vnc-client/">http://bdash.net.nz/blog/2003/12/24/python-vnc-client/</a><br>
<br>The code base has (last I heard) fallen stagnant, but it may very well<br>be worth a look as a starting point for your VNC project idea.<br><br>Jonathon<br><br><br>Chris Hengge wrote:<br>&gt; Wow.. I have visions of writing a little wanna-be VNC client/server now
<br>&gt; using the ImageGrab.grab() =D<br>&gt; This ImageGrab trick does exactly what I wanted. Thanks for the tip!<br>&gt;<br>&gt; Actually, I want to write a little package for the learning experience<br>&gt; sometime over the holidays (plus I use VNC fairly often), but I can't
<br>&gt; find any direction, or any already made packages for python for the VNC<br>&gt; protocol (no libs?).<br>&gt;<br>&gt; On 11/2/06, *Luke Paireepinart* &lt;<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com
</a><br>&gt; &lt;mailto:<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Anyone know of a way to capture special keys like &quot;Print Screen&quot;?<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; I have a small script to grab all they keycodes, but it doesn't<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; seem to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; catch several keys on the keyboard. I've got a utility that I'd<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; like to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; be able to automagically get a screenshot when something goes
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; wrong so I<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; dont have to hope the user can re-create the error. Universal<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; support<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; would be best, but WinXP is the main OS<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I'm not exactly sure what you want here :-) but if you want to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; capture<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; when the 'Print Screen' key (or any other key) has actually been<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; pressed, try pyHook. Note: pyHook only works on Windows!
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Also note that if you want all of the keypresses, but you _don't_ care<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; about the application with focus<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; receiving the input, you can do a complete key grab using TKInter or
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Pygame, and probably the other GUI packages too.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; But, like I said, if you were, for example, typing an e-mail and you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; started a script that did a complete grab like this, you'd no longer be
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; able to type<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; into the e-mail window.&nbsp;&nbsp;Using pyHook, your program could see all the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; keypresses, but they'd also still be sent to the e-mail program.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Actually, I've never tried it, but I'm pretty sure that's how the GUI
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; packages' key capturing works.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You may be asking 'well, it sounds like pyHook does a better job of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; this<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; anyway!'<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Yeah, you're right.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; However, as Alan exclaimed, pyHook works only on Windows!
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; So the solution I offered would be more portable.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hope that helps,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -Luke<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;
<br>&gt; _______________________________________________<br>&gt; Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor
</a><br></blockquote></div><br>