Red-Steel Posted August 4, 2007 Share Posted August 4, 2007 How can I make my script run once? Like, if I open two time the same script it wont work the second time. Thanks. Link to comment Share on other sites More sharing options...
xcal Posted August 4, 2007 Share Posted August 4, 2007 That's a really good question. They should add that to the Support Forum FAQ. If it does get added, I'd make it Q3. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Joke758 Posted August 4, 2007 Share Posted August 4, 2007 (edited) I suggest you something like this: If WinExists ( "abc-temp" ) Then Exit $gui = GuiCreate ( "abc-temp" ) ;script--- GuiDelete ( $gui ) Edited August 4, 2007 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! Link to comment Share on other sites More sharing options...
sumkid Posted August 4, 2007 Share Posted August 4, 2007 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. Link to comment Share on other sites More sharing options...
Generator Posted August 4, 2007 Share Posted August 4, 2007 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 Link to comment Share on other sites More sharing options...
xcal Posted August 4, 2007 Share Posted August 4, 2007 SWwwoooooooosh How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now