get notepad on windows to front via tcp-server SOLUTION: TweakUI

Roger rlwm.erens at home.nl
Thu Mar 4 06:22:31 EST 2004


"Chetan Gadgil" <cgadgil_list at cxoindia.dnsalias.com> wrote in message news:<mailman.17.1078218720.12614.python-list at python.org>...
> > 
> > Using these methods from a python shell works as expected, 
> > but using a tcp-client/server construct gives me notepad in the rear.
> 
> That sounds painful. ;)
> 
> 
> Do you think that using an edit control is suitable for your purpose?
> i.e. if you can avoid using notepad, you can have much better control
> over your controls.
> 
> 

Thanks all for replying!

I have to explain that notepad was just an example of one of the many
applications that I want to start up on windows, but I didn't want to
clutter up my original posting too much.

I'm using python to prototype and if I find something working, try to
work out the equivalent C-code. Hence, I'm not keen of importing the
win32gui or win32process modules. (I guess that would involve a _lot_
of digging in their code to find the C-equivalent).

Luckily, I found on MS' website the TweakUI powertoy.
In the setting General--Focus I can disable the option that prevents
applications from stealing the focus.

For now, I don't care much for possible side effects of irritating
windows popping up as was mentioned in the '98-thread...

Regards,
Roger



More information about the Python-list mailing list