Jump to content

only one instance of a script


Recommended Posts

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)

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