get notepad on windows to front via tcp-server
rlwm.erens at home.nl
Tue Mar 2 00:27:46 CET 2004
I've got some MS-windows (XP only?) related questions; hopefully
someone can give me some advise.
Is there some way to make notepad to become the front window when it
is started from within a tcp-server, using something like
os.system("start /w notepad")
Using these methods from a python shell works as expected, but using a
tcp-client/server construct gives me notepad in the rear.
I read an old thread from '98 about something very much related to
this, but it used tk which I don't want to. Besides, the thread ended
>From a python shell using
os.system("start /w write")
gives me an exit code (zero) before I have closed the application
wordpad. So os.system() is not waiting as I thought it should.
Can this be explained?
I have NOTEPAD.EXE in C:\windows and notepad.exe and write.exe in
Any help would be greatly appreciated.
More information about the Python-list