In fact I build an SFX archive with winrar where I specify a program to
launch once extraction has ended. The program is launched but don't find
it's sub-directory.
If I go to the extracted archive directory an dlbe-clic on install.exe
all runs fine, but whit winrar's Run after extraction option
Hi,
For the simple code:
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, Hello App)
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
Is there any way to know this windows' class
James Hu wrote:
Hi,
For the simple code:
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, Hello App)
frame.Show(true)
self.SetTopWindow(frame)
return true
app = MyApp(0)
app.MainLoop()
Is there any
Hi, Tim,
Your idea probably works as well, but I found another way to catch user
defined message. Thanks a lot!
For the handler of the second app, win32gui.FindWindow can do this job,
then win32gui.PostMessage. But for FindWindow, I can only find the
specific window by its title, not by its
Thanks a lot! Yes, GetHandle() can return 'wxWindowClassNR', which is
nice,
but all wxPython apps return wxWindowClassNR as well, so when I Post
Message, it goes to itself.
James
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Paul Moore
Sent: Friday,
At Friday 21/10/2005 16:26, you wrote:
Thanks a lot! Yes, GetHandle() can return 'wxWindowClassNR', which is
nice,
but all wxPython apps return wxWindowClassNR as well, so when I Post
Message, it goes to itself.
Application A can broadcast a private known message (using
RegisterWindowMessage)
Hi Le Dahut,
I use the following code for prgrams built with py2exe:
snip
import sys
import os
print os.path.dirname(sys.executable)
/snip
This may work in your situation as well.
Regards,
Andre
http://www.burgaud.com/
On 10/21/05, le dahut [EMAIL PROTECTED] wrote:
In fact I build an SFX
Title: Re: [python-win32] findwindow by its class name
If all
else fails, youcould create a win32gui based hidden window with a
classname of your choice. pywin32's win32gui_taskbar.pydoes exactly
this. You would probably need to create this window in its own thread
running a win32gui