Sign in to follow this  
Followers 0
Red-Steel

Run only one time

6 posts in this topic

How can I make my script run once?

Like, if I open two time the same script it wont work the second time.

Thanks. :)

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

I suggest you something like this:

If WinExists ( "abc-temp" )  Then Exit
$gui = GuiCreate ( "abc-temp" )
;script---
GuiDelete ( $gui )
Edited by Joke758

[u]My Programs:[/u]Word Search Creator - Make your own Word SearchShortHand - Hide a secret message in a jpg fileHex Editor - Edit your Binary fileIncrease file size - Increase the size of any filesArt Generator - A program that generate random picture[u]My Functions:[/u]16-Bits Hash - My Hash function similar to MD5Probabilities - My probabilities function (factorial, permuation, combination)_GetDate() - Convert a date to a day of the week_Base(), _Dec() - Convert a number in any base (bin, oct, hex, dec). Create your own!

Share this post


Link to post
Share on other sites

maybe in your script you can add a code to make a file and you can make it something like if that file exists then it wont run again.

Share this post


Link to post
Share on other sites

Funny thing is all of you provided stupid answer, look it up, i think it's question #14 in FAQ sticky.

Other than that, this

#include<misc.au3>
If _Singleton("Myscript", 1) = 0 Then
    Exit
EndIf

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