07-03-2007, 06:11 PM
I am testing a macro that is supposed to run 12 reports in a row in the foreground- each report takes around half an hour. I am using the following wait command to pause for each report to finish.
wait 2100 C 0xC4C4C4 60 100
The reports are run on a shared drive and impact the other users, so I am testing the macro by running it at night and turning my screen off. Everytime I try that I am getting a wait timeout error. When I run it during the day, the wait command executes correctly.
I don't really need to have my screen on for the macro to determine a pixel color, right?
I tried the 'wait until not busy' function that Gintaras provided, but it did not work. I think it is because the application is running on a shared drive, not the local computer.
I am not really sure how to proceed other than extending the wait time and hope that the reports were running slower than normal during the night.
Any suggestions would be appreciated!
Thanks.
wait 2100 C 0xC4C4C4 60 100
The reports are run on a shared drive and impact the other users, so I am testing the macro by running it at night and turning my screen off. Everytime I try that I am getting a wait timeout error. When I run it during the day, the wait command executes correctly.
I don't really need to have my screen on for the macro to determine a pixel color, right?
I tried the 'wait until not busy' function that Gintaras provided, but it did not work. I think it is because the application is running on a shared drive, not the local computer.
I am not really sure how to proceed other than extending the wait time and hope that the reports were running slower than normal during the night.
Any suggestions would be appreciated!
Thanks.