Re: [python-win32] activate an opened window through the server

2009-04-24 Thread Tim Roberts
belaqziz salwa wrote: > I used subprocess.call but I had the following message: > > Could not import process : (-2147217405, 'OLE error 0x80041003', None, > None) > > ** I added this code to my process: > > cmd = 'idlde.exe -minimized -nodemowarn -noconfirmexit -nosplash > @C:\SAMIR\soil.ru

Re: [python-win32] activate an opened window through the server

2009-04-24 Thread belaqziz salwa
bprocess.call(cmd, 0, None, None) And I run it with: http://localhost/wps/wps.py?version=1.0.0&service=Wps&request=Execute&Identifier=soil_process but it does not works thanks for help --- En date de : Ven 24.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] a

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > yes my IDL script produces an image file, i want just execute this > progmam, and not to send an HTML image. how can i do that ? > You'll have to dig into PyWPS for the details, but I think your PyWPS script just needs to run idlde.exe as a separate process, using that comm

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
yes my IDL script produces an image file, i want just execute this progmam, and not to send an HTML image. how can i do that ? thanks for help.   --- En date de : Ven 24.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I work on a PyWPS project and I need to run an IDL program , after the > user completed a form, > if I create a program .pro with the command that launches my program, > like this > > idlde.exe -minimized -nodemowarn -noconfirmexit -nosplash > @"C:\SAMIR\soil.run" > > how ca

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
my server? thanks for help. --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À: "Python-Win32 List" Date: Jeudi 23 Avril 2009, 23h54 belaqziz salwa wrote: > I want, through a python script, t

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I want, through a python script, to run a program that is written in > another language (IDL: Interactive Data Language), I tried to execute > a .bat file where I put my command which runs the program but I get > the error message: permission denied, then I thought to anothe

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
but it is not possible is there a solution ?? thanks for help   --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window through the server À: "Python-Win32 List" Date: Jeudi 23 Avril 2009, 22h59 belaqziz salwa wrote:

Re: [python-win32] activate an opened window through the server

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > I try to run a program in an interface that is already opened, all > works well through the Command Prompt but when I run my python script > in the server e.g http://localhost/MyScript.py it gives me the > following message: > pywintypes.error: (0, 'EnumWindows', 'No error m

[python-win32] activate an opened window through the server

2009-04-23 Thread belaqziz salwa
lable') thanks for help --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window À: "Python-Win32 List" Date: Jeudi 23 Avril 2009, 21h35 belaqziz salwa wrote: > it works with findTopWindow and _windowEnumerat

Re: [python-win32] activate an opened window

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > it works with findTopWindow and _windowEnumerationHandler but only > through the Command Prompt and I can not access it through my server > by launching a URL > I have no idea what that means. How is a URL involved? Perhaps you should describe exactly what you are trying

Re: [python-win32] activate an opened window

2009-04-23 Thread belaqziz salwa
it works with findTopWindow and _windowEnumerationHandler but only through the Command Prompt and I can not access it through my server by launching a URL Thanks   --- En date de : Jeu 23.4.09, Tim Roberts a écrit : De: Tim Roberts Objet: Re: [python-win32] activate an opened window À

Re: [python-win32] activate an opened window

2009-04-23 Thread Tim Roberts
belaqziz salwa wrote: > > how I can activate a window that is already opened, through its PID of > process > Are you saying you have the PID of a process, and you want to bring its window to the top? I don't know of any shortcut way to do that, but you could certainly enumerate through all of the

[python-win32] activate an opened window

2009-04-23 Thread belaqziz salwa
Hi, how I can activate a window that is already opened, through its PID of process thanks ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32