Re: [python-win32] Some questions about network shares ?

2009-12-15 Thread Stef Mientki
Tim Golden wrote: Stef Mientki wrote: AFAIK it's not allowed to connect a network share more than once. As my shares can already be connected through by another program, I need to detect if a network share is already connected, So I try to get a list of available network shares, but I don't see

Re: [python-win32] sort in EXCEL via pywin32

2009-12-15 Thread Tim Roberts
Moll, Benjamin wrote: > > How can I sort a column from B14:B24 considering alphabeticaly order? > > > > /self/.xlApp.Range(/"B14:B24"/).Sort(Key1=/self/.sht.Columns( 3 ) , > Order1=2, Header=1) > > > > don’t understand the meaning of key1! > That says to sort the data based on the 3rd column,

Re: [python-win32] help with pywin32

2009-12-15 Thread Tim Roberts
Moll, Benjamin wrote: > > Hey guys, > > Im working with this script since weeks. Until today everything works > fine. I could open, read and modify cells without any problems. since > this morning I receive an error that says: > > > > Traceback (most recent call last): > > File "C:\Documents an

Re: [python-win32] python vs vbs with parental controls (security issue?) [resolved]

2009-12-15 Thread Ross Boylan
On Tue, 2009-12-15 at 20:21 +, Tim Golden wrote: > Ross Boylan wrote: > > This python script gets no URL overrides and no user settings: > > PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit > > (Intel)] on win32. > > Portions Copyright 1994-2008 Mark Hammond - see 'Help/Ab

Re: [python-win32] adodbapi upgrade

2009-12-15 Thread Vernon Cole
Randy: Good idea, but I need a test case which gives a reliable failure. The simple test in the test suite works fine. Could I talk you into submitting a copy of adodbapitest.py which will demonstrate the problem which must be fixed? That way the problem, once fixed, can never re-occur. -- Ver

[python-win32] sort in EXCEL via pywin32

2009-12-15 Thread Moll, Benjamin
How can I sort a column from B14:B24 considering alphabeticaly order? self.xlApp.Range("B14:B24").Sort(Key1=self.sht.Columns( 3 ) , Order1=2, Header=1) don't understand the meaning of key1! Regards and thanks in advance! Geschäftsführer/Mana

[python-win32] help with pywin32

2009-12-15 Thread Moll, Benjamin
Hey guys, Im working with this script since weeks. Until today everything works fine. I could open, read and modify cells without any problems. since this morning I receive an error that says: Traceback (most recent call last): File "C:\Documents and Settings\USER\Desktop\Code\python\test

Re: [python-win32] python vs vbs with parental controls (security issue?)

2009-12-15 Thread Tim Golden
Ross Boylan wrote: This python script gets no URL overrides and no user settings: PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. import win32com.cl

Re: [python-win32] Problem with OLE error 0x80041002

2009-12-15 Thread Tim Golden
Gowtham wrote: Inline- On Fri, Dec 11, 2009 at 9:16 AM, Tim Golden wrote: Gowtham wrote: I have a python script that retrieves the user profile path from the registry using wmi. I am doing this way as win32net.NetUserGetInfo could not somehow find the domain user. Here the code snippet-

Re: [python-win32] Some questions about network shares ?

2009-12-15 Thread Tim Golden
Stef Mientki wrote: AFAIK it's not allowed to connect a network share more than once. As my shares can already be connected through by another program, I need to detect if a network share is already connected, So I try to get a list of available network shares, but I don't see the network shares,

[python-win32] Some questions about network shares ?

2009-12-15 Thread Stef Mientki
hello, AFAIK it's not allowed to connect a network share more than once. As my shares can already be connected through by another program, I need to detect if a network share is already connected, So I try to get a list of available network shares, but I don't see the network shares, although the

Re: [python-win32] registering for power events

2009-12-15 Thread Tim Golden
Ross Boylan wrote: I would like my application to get notice when the system sleeps, hibernates, or wakes up. http://msdn.microsoft.com/en-us/library/aa373196(VS.85).aspx points me to RegisterPowerSettingNotification, but I do not see this in the latest docs from ActiveState. MSDN only seems to

Re: [python-win32] registering for power events

2009-12-15 Thread Tim Roberts
Ross Boylan wrote: > I would like my application to get notice when the system sleeps, > hibernates, or wakes up. > http://msdn.microsoft.com/en-us/library/aa373196(VS.85).aspx > points me to RegisterPowerSettingNotification, but I do not see this in > the latest docs from ActiveState. MSDN only s

[python-win32] adodbapi upgrade

2009-12-15 Thread Randy Syring
You're the Man, Thomas! You, too, Greg! Now I have to get my latest upgrade to adodbapi done so I can put some time into really using pygui. -- Vernon Vernon, Just curious, will the upgrades to adodbapi include fixes for the MSSQL stored procedure issues we discussed some time back? --

[python-win32] python vs vbs with parental controls (security issue?)

2009-12-15 Thread Ross Boylan
This python script gets no URL overrides and no user settings: PythonWin 2.6.4 (r264:75706, Nov 3 2009, 13:23:17) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. >>> import win32com.client >>>locator =

[python-win32] registering for power events

2009-12-15 Thread Ross Boylan
I would like my application to get notice when the system sleeps, hibernates, or wakes up. http://msdn.microsoft.com/en-us/library/aa373196(VS.85).aspx points me to RegisterPowerSettingNotification, but I do not see this in the latest docs from ActiveState. MSDN only seems to provide a C++ interfa

Re: [python-win32] Solved - Printing coordinate system problem

2009-12-15 Thread Vernon Cole
You're the Man, Thomas! You, too, Greg! Now I have to get my latest upgrade to adodbapi done so I can put some time into really using pygui. -- Vernon On Tue, Dec 15, 2009 at 4:15 AM, Greg Ewing wrote: > Thomas Heller wrote: > > I would guess that GetDeviceCaps() returns the information that you

[python-win32] Solved - Printing coordinate system problem

2009-12-15 Thread Greg Ewing
Thomas Heller wrote: I would guess that GetDeviceCaps() returns the information that you need. Yep, this turns out to be right, although it's *very* difficult to find this out if you start looking in the area of the docs that talks about printing! My margins are spot-on now. I'm happy. Need