Jump to content

Check if another script is still running


PGTART
 Share

Recommended Posts

Yesterday i asked about how to check if a script isnt running twice, and i now use _Singleton for that.
But i still notice that it sometimes go wrong, as if i start a script while another script is still active it goes wrong too.
So how can i check if another script with name xxxxx is still active and not finished ?

Link to comment
Share on other sites

If you compile the other script and run the exe you can use ProcessExists to check.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Like water says, you can check for the process .... or you can check for a Window Title.

You can also use the same thing for your other similar question/post.

That said, I'm not 100% sure that I fully understand what you are saying above, so I'm also wondering, if you gave _Singleton a unique term/name .... and whether maybe you are having a clash with same term in different programs?

I always use something like my name plus word elements of the program name, separated by dashes.

i.e. _Singleton("web-pad-thsaint")

Pretty much guarantees I won't have clashes.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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