elgaza Posted July 18, 2007 Share Posted July 18, 2007 Hi I don't know why but when the compiled script is executing I see after a while in the trayicon that another instance of the same script is running is there a way to restrict the script to run only one instance? Thank you very much. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 18, 2007 Developers Share Posted July 18, 2007 HiI don't know why but when the compiled script is executing I see after a while in the trayicon that another instance ofthe same script is runningis there a way to restrict the script to run only one instance?Thank you very much.Does it have a run() statement in it ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
elgaza Posted July 18, 2007 Author Share Posted July 18, 2007 Does it have a run() statement in it ?Hi Yes it runs a file and then does what it needs to do , click the buttonsif thats what you meant. Link to comment Share on other sites More sharing options...
Toady Posted July 18, 2007 Share Posted July 18, 2007 Add this to the top of your scripts _Singleton("blahblahblah") You will need to include the Misc.au3 header file. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Developers Jos Posted July 18, 2007 Developers Share Posted July 18, 2007 Hi Yes it runs a file and then does what it needs to do , click the buttonsif thats what you meant.What is the programname you start with the Run() statement?...and what is the name of your compiled script ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
elgaza Posted July 18, 2007 Author Share Posted July 18, 2007 Thank you I am new to this so I dont know much about it you said to add _Singleton("blahblahblah") what is the blahblah should be just any thing or the name of the script? and how do I add the Misc.au3 header file.? this must be self understood to you guys but I am avery new newbe thank you for the fast reply Link to comment Share on other sites More sharing options...
Toady Posted July 18, 2007 Share Posted July 18, 2007 (edited) Sorry about that, add this to the top of the script #include <misc.au3> _Singleton("CanBeAnything") Edited July 18, 2007 by Toady www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
elgaza Posted July 18, 2007 Author Share Posted July 18, 2007 Thanks again this is really probably the most active forum i have ever seen Link to comment Share on other sites More sharing options...
Developers Jos Posted July 18, 2007 Developers Share Posted July 18, 2007 Thank youI am new to this so I dont know much about ityou said to add _Singleton("blahblahblah")what is the blahblah should be just any thing or the name of the script?and how do I add the Misc.au3 header file.?this must be self understood to you guys but I am avery new newbethank you for the fast replyNot really... was trying to understand why the script starts itself... in other words not fight the symptoms but find the cause .....There must be a reason why the script starts again and have seen several times before that people use RUN("xyz.exe") and call the script XYZ.au3, then after compilation it ends up as XYZ.exe thus shelling itself.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DW1 Posted July 18, 2007 Share Posted July 18, 2007 it is commonplace to post your script in this forum AutoIt3 Online Help 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