[python-win32] activate an opened window through the server
Tim Roberts
timr at probo.com
Thu Apr 23 23:59:55 CEST 2009
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 message is available')
>
>
Are you trying to run this as a CGI script through IIS? CGI scripts run
in a very different and very restricted environment. They cannot access
the list of windows. It's just not possible.
Why do you want to run this through a web server? What is your overall
plan here?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list