Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Using '_Singleton' function in compiled script

$
0
0

I'm wondering two things about _Singleton and the way it works in a compiled script.

#include <Misc.au3> If _Singleton("test", 1) = 0 Then ;If test is compiled do I have to write _Singleton("test.exe", 1) instead?     MsgBox(0, "Warning", "An occurence of test is already running")     Exit EndIf MsgBox(0, "OK", "the first occurence of test is running")

At first in the above example I'ld like to know how to name my 'test' script when it will be compiled. Do I have to add the EXE file extension at the end of the script name ? It seems to be not clearly explained in the help file, or at least I didn't find the info.

 

Then I'ld like to know what's the first line action in a compiled script. Does the #include function add the whole code lines from the included AU3 script to the current script before compiling? This is how I understand it but I'm maybe wrong so I'ld like to confirm it from experienced peoples.

 

At last, could you please tell me if there's a place in the AutoIt community websites where I could post my entire script to share the ideas in it and to also allow other AutoIt coders to review the script? It's my first AutoIt complicate script (at least from a newbie point-of-view) and I'm near sure that some things I've made complicate could be done a more simple way. That's why I surely need some advices to progress in my AutoIt skills learning.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>