Re: [python-win32] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Tim Roberts
Scott Nelson wrote: > I'm looking to use the win32api and win32gui modules to do a bit of > Windows tinkering (win2k, ActiveState's Python 2.4.1 distribution) and > I've hit a snag. > > I'd like to have my process/window "steal" the focus from whatever > window currently has it, get a bit of input

Re: [python-win32] python 2.5

2008-03-17 Thread Tim Roberts
Tarun Kapoor wrote: > > I want to use python win32 extensions on python 2.5 but it seems like > they were built for 2.3… > > I copied the win32 folders from C:\python23\lib\site-packages to > C:\python25\lib\site-packages but it does not work…. > > Is there a workaround ? anyone using it ? > For

Re: [python-win32] python 2.5

2008-03-17 Thread Tarun Kapoor
Worked !! Mucho Gracias ! -Original Message- From: Werner F. Bruhin [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2008 1:06 PM To: Tarun Kapoor Cc: python-win32@python.org Subject: Re: python 2.5 Tarun Kapoor wrote: > I want to use python win32 extensions on python 2.5 but it seems

Re: [python-win32] python 2.5

2008-03-17 Thread Werner F. Bruhin
Tarun Kapoor wrote: > I want to use python win32 extensions on python 2.5 but it seems like > they were built for 2.3… the newer builds are on sourceforge, including ones for Python 2.5 and 2.6. https://sourceforge.net/project/platformdownload.php?group_id=78018 Werner _

[python-win32] python 2.5

2008-03-17 Thread Tarun Kapoor
I want to use python win32 extensions on python 2.5 but it seems like they were built for 2.3... I copied the win32 folders from C:\python23\lib\site-packages to C:\python25\lib\site-packages but it does not work Is there a workaround ? anyone using it ? -TK Disclaimer This e-mail and a

[python-win32] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Scott Nelson
Greets... I'm looking to use the win32api and win32gui modules to do a bit of Windows tinkering (win2k, ActiveState's Python 2.4.1 distribution) and I've hit a snag. I'd like to have my process/window "steal" the focus from whatever window currently has it, get a bit of input from the keyboard, a

Re: [python-win32] How to create a com_record?

2008-03-17 Thread Kevin Patterson
In case it helps, here's the overall description of the COM/app and what how this function fits: "COM_App" is a typelib (with multiple classes) for interfacing to an application that controls hardware on a USB port. When multiple applications are started it becomes impossible for users to write cod

Re: [python-win32] Running SQL queries on excel sheets

2008-03-17 Thread Rickey, Kyle W
Thanks John, I'll check that out. -Kyle Rickey -Original Message- From: John Machin [mailto:[EMAIL PROTECTED] Sent: Sunday, March 16, 2008 4:40 AM To: Rickey, Kyle W Cc: python-win32@python.org Subject: Re: [python-win32] Running SQL queries on excel sheets Rickey, Kyle W wrote: > Tim,

Re: [python-win32] Skip Alt+F4

2008-03-17 Thread le dahut
Oh yes ! That's it. Thank you. It is a frame that's used by a service to display some information before uncancelable forced reboot. I now have to determinate how to modify the informations displayed in the frame. Should my program run in the class of the frame ? Or should it get a sort of ha

Re: [python-win32] python-win32 Digest, Vol 60, Issue 26

2008-03-17 Thread Tim Golden
siddhartha veedaluru wrote: > Hi Tim, > > I tried the snippet you sent to me. > Same error. > > i opened the python shell and gave "import wmi" > It give the same error. > > comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp() > com_error: (-2147319779, 'Library not registered.'

[python-win32] Library not Registered Error while running

2008-03-17 Thread siddhartha veedaluru
un this code to see if it produces > the same result? (This is basically what the wmi module > does behind the scenes). > > > import win32com.client > win32com.client.GetObject ("winmgmts:") > > > TJG > --- >

Re: [python-win32] python-win32 Digest, Vol 60, Issue 26

2008-03-17 Thread siddhartha veedaluru
un this code to see if it produces > the same result? (This is basically what the wmi module > does behind the scenes). > > > import win32com.client > win32com.client.GetObject ("winmgmts:") > > > TJG > --- > Hi , >

Re: [python-win32] Skip Alt+F4

2008-03-17 Thread Paul Moore
On 17/03/2008, le dahut <[EMAIL PROTECTED]> wrote: > I'm writting a Wx app and I want to skip Alt+F4. I've used somehting > like that : > def OnKeyDown(self, event): > print event.AltDown(), event.GetKeyCode() > if event.AltDown() and event.GetKeyCode() == wx.WXK_F4: >

[python-win32] Skip Alt+F4

2008-03-17 Thread le dahut
Hello, I'm writting a Wx app and I want to skip Alt+F4. I've used somehting like that : def OnKeyDown(self, event): print event.AltDown(), event.GetKeyCode() if event.AltDown() and event.GetKeyCode() == wx.WXK_F4: print 'try to close' Everything gets printed b

Re: [python-win32] Library not Registered Error while running

2008-03-17 Thread Tim Golden
siddhartha veedaluru wrote: >> From: Tim Golden <[EMAIL PROTECTED]> >> Just to test, could you run this code to see if it produces >> the same result? (This is basically what the wmi module >> does behind the scenes). >> >> >> import win32com.client >> win32com.client.GetObject ("winmgmts:") >>