Sign in to follow this  
Followers 0
locutus243

One time only

2 posts in this topic

I have a script that opens up a number of programs when it is first run, e.g. Microsoft Excel etc...

But because I am constantly testing my script and doing other things I am stopping it quite a lot. And everytime I restart it, it annoys me by asking for the title of the excel file etc... whihc are already open from the first time I started my script.

Therefore I was wondering if there was a way of having a part of my script which triggers the first time that the script is used but then not each time I restart it. Or even better, if I could specify which times to use it, so every five times it would show the input box (that asks which Excel file) but not the others????

Thanks

Mark

P.S. If this doesn't make sense then let me know and I'll try and make things clearer, I really appreciate all your help!!

Share this post


Link to post
Share on other sites



I have a script that opens up a number of programs when it is first run, e.g. Microsoft Excel etc...

But because I am constantly testing my script and doing other things I am stopping it quite a lot. And everytime I restart it, it annoys me by asking for the title of the excel file etc... whihc are already open from the first time I started my script.

Therefore I was wondering if there was a way of having a part of my script which triggers the first time that the script is used but then not each time I restart it. Or even better, if I could specify which times to use it, so every five times it would show the input box (that asks which Excel file) but not the others????

Thanks

Mark

P.S. If this doesn't make sense then let me know and I'll try and make things clearer, I really appreciate all your help!!

Before starting Excel it could check to see if it is already active and if it is do not start it.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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