Sign in to follow this  
Followers 0
erikson

only one instance of a script

3 posts in this topic

hi

i whant that a script could be start only 1 instance at time.

how can i do that?

Share this post


Link to post
Share on other sites



hi

i whant that a script could be start only 1 instance at time.

how can i do that?

I borrowed this from one of the screeen capture scripts:

CODE

;only allow 1 running copy

$g_szVersion = "MultiScreenDump"

If WinExists($g_szVersion) Then Exit MsgBox(262144, "Error", "Screen Capture is already running")

AutoItWinSetTitle($g_szVersion)

Share this post


Link to post
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
Sign in to follow this  
Followers 0