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

2009-04-24 Thread belaqziz salwa
, None, None) And I run it with: http://localhost/wps/wps.py?version=1.0.0service=Wpsrequest=ExecuteIdentifier=soil_process but it does not works thanks for help --- En date de : Ven 24.4.09, Tim Roberts t...@probo.com a écrit : De: Tim Roberts t...@probo.com Objet: Re: [python-win32] activate

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.run'

[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

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

Re: [python-win32] activate an opened window

2009-04-23 Thread belaqziz salwa
] activate an opened window À: Python-Win32 List python-win32@python.org Date: Jeudi 23 Avril 2009, 18h22 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

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 to

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

2009-04-23 Thread belaqziz salwa
for help --- En date de : Jeu 23.4.09, Tim Roberts t...@probo.com a écrit : De: Tim Roberts t...@probo.com Objet: Re: [python-win32] activate an opened window À: Python-Win32 List python-win32@python.org Date: Jeudi 23 Avril 2009, 21h35 belaqziz salwa wrote: it works with findTopWindow

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

[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 t...@probo.com a écrit : De: Tim Roberts t...@probo.com Objet: Re: [python-win32] activate an opened window through the server À: Python-Win32 List python-win32@python.org Date: Jeudi 23

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 another

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

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

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 can I run it

[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 t...@probo.com a écrit : De: Tim Roberts t...@probo.com Objet: Re: [python-win32] activate an opened

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