Jump to content
Sign in to follow this  
BigDog

about compile ...

Recommended Posts

BigDog

Dear sir

how do i compile mycode.au3 to a [single instance] mycode.exe ?

i hope limit mycode.exe be executed in only ONE instance at anytime !

Share this post


Link to post
Share on other sites
monoceres

Dear sir

how do i compile mycode.au3 to a [single instance] mycode.exe ?

i hope limit mycode.exe be executed in only ONE instance at anytime !

Check _SingleTon() in the helpfile :)

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
BigDog

Check _SingleTon() in the helpfile :)

1) thanks

2) how do i set the $sOccurenceName of mycode.au3 ?

or how do i get the $sOccurenceName of mycode.au3 ?

Share this post


Link to post
Share on other sites
monoceres

$sOccurenceName is just a random string you choose that is supposed to be unique for your program, just choose something only you would choose, like "BigDogsprogram8435416"


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
BigDog

$sOccurenceName is just a random string you choose that is supposed to be unique for your program, just choose something only you would choose, like "BigDogsprogram8435416"

thank you ! :) i got it !

Share this post


Link to post
Share on other sites
BigDog

thank you ! :) i got it !

oh , 1 more questions please .

is that meaning : i could set the $sOccurenceName all like "my1234768secret" in mycode1.au3 , mycode2.au3 and so on

then then i could let mycode1.au3 and mycode2.au2 .... COULD NOT be executed at the same time ?!!

Share this post


Link to post
Share on other sites
Jos

oh , 1 more questions please .

is that meaning : i could set the $sOccurenceName all like "my1234768secret" in mycode1.au3 , mycode2.au3 and so on

then then i could let mycode1.au3 and mycode2.au2 .... COULD NOT be executed at the same time ?!!

Correct, it looks at the used string to identify the process.

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.