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 James On Sun

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

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 http://support.microsoft.com/kb/156212It 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
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 rsyr...@inteli

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

[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: fernando.romagn...@embraer.com.br Date: Wed, Jun 3, 2009 at 8:40 AM Subject: [python-win32] Phyton editor To: python-win32@python.org

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

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 image

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 t...@probo.com wrote: Steven James wrote: Not an expert

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 (matherbe

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 work... (cut to snippets because

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

2008-10-22 Thread Steven James
, but it should be pretty close already. Steven James On Wed, Oct 22, 2008 at 1:07 PM, Matt Herbert (matherbe) [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python-win32-bounces+matherbe python-win32-bounces%2Bmatherbe= [EMAIL PROTECTED] On Behalf

Re: [python-win32] lock workstation

2007-10-11 Thread Steven James
. 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 ctrl+alt+del or windows+l. trigger a procedure to save the time

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 format

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 you can coerce the binary

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 PROTECTED] wrote: Steven James wrote: Can

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

2007-04-20 Thread Steven James
, 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 run makegw

[python-win32] How to use IExtractImage in python

2007-04-18 Thread Steven James
) --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 use this interface in python? I have googled for hours. Thanks, Steven James