Re: [python-win32] Enable/disable Remote Desktop via Python

2010-05-16 Thread Steven James
http://thebackroomtech.com/2007/05/18/how-to-enable-remote-desktop-on-a-windows-xp-machine-remotely/ That link explains how to do this remotely from a command line and by modifying a registry entry. I've scripted this with python before but can't find the code right now. Steven Jame

Re: [python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-06 Thread Steven James
Not sure exactly, but perhaps you could distinguish whether the battery is connected via USB or some other transport method? Looking through the device manager there seem to be some fields that might be relevant. As a network admin, I've used a free software called Spiceworks in the past that scans

Re: [python-win32] Python Automation Question

2010-02-17 Thread Steven James
PDFCreator has a COM API...might be able to solve your problem a different way. If user-friendliness does not matter, try this knowledge base article: http://support.microsoft.com/kb/156212 It describes how to change the default printer (per user) through a

Re: [python-win32] making icons on task bar require double-click

2009-10-23 Thread Steven James
which negates the need for a quicklaunch anyway. 5) Make your quicklaunch bar smaller, and use the little double-arrow-menu as a pop-up quicklaunch instead of having all icons showing. Some of those might be helpful, some not. Steven James On Fri, Oct 23, 2009 at 12:20 PM, Randy Syring wrote: &

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Steven James
I think the bigger issue is being passed over...why write a program to do what RDP should already be able to do? RDP should work by machine name. If it does not, then DNS probably is not set up correctly. Are you, by any chance, using OpenDNS as your DNS servers? Does your router support DHCP ass

[python-win32] Fwd: Phyton editor

2009-06-03 Thread Steven James
I like SPE and Wing. Wing isn't free though. http://pythonide.blogspot.com/ http://www.wingware.com/ Steven James -- Forwarded message -- From: Date: Wed, Jun 3, 2009 at 8:40 AM Subject: [python-win32] Phyton editor To: python-win32@python.org Dears, I am looking

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Steven James
memory space your own app is currently using, which was the original question. Probably clunky, but as I said, I'm not an expert. like so. http://soundstripe.net/node/62 Steven On Thu, Jan 29, 2009 at 2:04 PM, Tim Roberts wrote: > Steven James wrote: > > Not an expert on this

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Steven James
Not an expert on this, but googling "win32 performance counters" led me here: http://msdn.microsoft.com/en-us/library/aa373193(VS.85).aspx Should let you get the available physical memory in the system. Not sure that you can specify to Windows that you want physical memory when you create the imag

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Steven James
For the display of bitmaps, most apps take the approach of creating (sometimes multiple) low-res versions of the images, then swapping out so that only what you need at the moment is loaded in to memory. For instance, create a 50x50 version, a 100x100 version, and a 500x500 version. Only load the 5

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
On Thu, Oct 23, 2008 at 1:04 PM, Sidnei da Silva <[EMAIL PROTECTED]>wrote: > On Thu, Oct 23, 2008 at 2:54 PM, Steven James <[EMAIL PROTECTED]> > wrote: > > Because I like fun stuff and knowing that people at cisco use hacks like > > this, here you go, this should wo

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
it, you enable it, run it, then disable it again. You can supply the credentials. I tried to make everything a variable in the above post. Does not run under Windows XP (there wasn't a Task Scheduler COM interface in XP AFAIK). Steven James On Wed, Oct 22, 2008 at 2:25 PM, Matt Herbert (mat

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Steven James
you have proper credentials, etc). Does this help? Sorry I don't have the knowledge to quickly translate this into python/win32, but it should be pretty close already. Steven James On Wed, Oct 22, 2008 at 1:07 PM, Matt Herbert (matherbe) <[EMAIL PROTECTED] > wrote: > > > --

Re: [python-win32] lock workstation

2007-10-11 Thread Steven James
locks, etc. Steven James On 10/11/07, kNish <[EMAIL PROTECTED]> wrote: > > Hi, > >Need : To track time when a workstation is locked and when it > is unlocked. Store this time. > >My approach : 1st Option > >Trap the key "c

Re: [python-win32] How to convert an OLE image from ODBC?

2007-05-11 Thread Steven James
dumping the data at the 89th byte. dump_file = file('show.dump', 'rb') out_file = file('show.bmp', 'wb') dump_file.seek(88) out_file.write(dump_file.read()) dump_file.close() out_file.close() Steven James On 5/11/07, Grzegorz Adam Hankiewicz <[EMAIL PRO

Re: [python-win32] How to convert an OLE image from ODBC?

2007-05-11 Thread Steven James
Can you post one of those tempfiles somewhere? On 5/11/07, Grzegorz Adam Hankiewicz <[EMAIL PROTECTED]> wrote: Steven James wrote: > Have you tried writing the binary data to a file, then reading it from > that file with PIL? > > Also, you could try Image.frombuffer() if

Re: [python-win32] How to convert an OLE image from ODBC?

2007-05-11 Thread Steven James
,G,R byte order instead of R,G,B, so that took some finagling as well. Steven James On 5/11/07, Grzegorz Adam Hankiewicz <[EMAIL PROTECTED]> wrote: I have an access database I can access through python. A query for the image column returns binary data, but this data is in OLE image/bitmap

Re: [python-win32] How to use IExtractImage in python

2007-04-20 Thread Steven James
mBits, or some similar function, if I can somehow convert the HBITMAP data (instead of the handle) to a string. Thanks, Steven James On 4/19/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > I have been delving in to the process of adding support for IExtractImage to > pythonwin. I have

Re: [python-win32] How to use IExtractImage in python

2007-04-19 Thread Steven James
y be written somewhere, but I can't seem to find it. Any help/advice would be appreciated. Thanks for the responses so far. Steven James On 4/19/07, Tony Cappellini < [EMAIL PROTECTED]> wrote: Steven Would it be possible to launch AutoCad, then use Python/PIL to do screenshots of

[python-win32] How to use IExtractImage in python

2007-04-18 Thread Steven James
pythoncom.MakeIID ('{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}'),0) --end python adaptation-- The python code fails on the last statement, throwing the following exception: TypeError: There is no interface object registered that supports this IID Any ideas on how to u