Jump to content

New User Questions


Recommended Posts

I'm sure the answers will be obvious but here goes:

1) How can I check if an application is already open before launching it again with Run. For example WinWaitActivate("Document1 - Microsoft Word") will fail if another document is already open in MS Word since the new window will be called "Document2 - Microsoft Word"

2) I want a script to run at a certain time each day, plus a random of 1-5 minutes (don't ask why smile.gif) . We'll assume 2 p.m. for simplicity.

I'm thinking the best approach would be to schedule the script to run in Task Scheduler at 2:00 p.m. and then, immediately in the script, would be a delay of a random value from one to five minutes, after which the script would run. But I'm not exactly sure how to accomlish this. Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...