I have a windmill script that tests a webpage that allows a user to
enter their email and click a button that sends them an email
containing a URL where they can download data they may be interested
in.
A second script will download the data. This is written and tested.
Works fine. But currently there is a manual step of feeding the
script the URL info. I wanted to automate this so I wrote an Outlook
macro that captures the URL and uses ShellExecute to fire the second
windmill script.
The problem is I always get the following error message....
Traceback (most recent call last):
File "C:\Python25\Scripts\windmill-script.py", line 8, in <module>
load_entry_point('windmill==1.3', 'console_scripts', 'windmill')()
File "c:\windmill\windmill\bin\windmill_bin.py", line 33, in main
admin_lib.command_line_startup()
File "c:\windmill\windmill\bin\admin_lib.py", line 360, in
command_line_startup
shell_objects = setup()
File "c:\windmill\windmill\bin\admin_lib.py", line 182, in setup
shell_objects_dict['browser'] = getattr(shell_objects,
browser[0].lower())()
File "c:\windmill\windmill\bin\shell_objects.py", line 53, in
start_ie
controller.start()
File "c:\windmill\windmill\browser\ie.py", line 82, in start
self.p_handle = killableprocess.Popen(self.cmd, **kwargs)
File "C:\Python25\lib\subprocess.py", line 594, in __init__
errread, errwrite)
File "c:\windmill\windmill\browser\killableprocess.py", line 142, in
_execute_
child
winprocess.AssignProcessToJobObject(self._job, hp)
File "c:\windmill\windmill\browser\winprocess.py", line 37, in
ErrCheckBool
raise WinError()
WindowsError: [Error 5] Access is denied.
I've researched this extensively and tried a few different methods.
The latest was using AutoIt to fire up windmill as a prototype just to
see if that could be done and it receives the same error. Both the
Outlook macro and the AutoIt script are using ShellExecute.
Any ideas on how to resolve this or does anyone have a better way to
fire up windmill based on the result of an event.
Thanks for your input...
Paul