Hello AutoIters, What is the syntax or function by which I can know that there is already an instance of my application running? Because I don't want to run my application several times (at a time in one PC).
> Hello AutoIters, > What is the syntax or function by which I can know that there is > already an instance of my application running? Because I don't want to > run my application several times (at a time in one PC).
Dear Sandel, Thank's for your help. I could not understand the "test\test" parameter. what is the first test and what is the right test? one is my application and one is a function? Please describe a little more. I saw the help file even and could not understand this.
Thanks again.
Shiblee
On 12/10/05, Sandel Perieanu <psandu...@gmail.com> wrote:
> *#include "Misc.au3" > *#include "GuiConstants.au3" > *If _Singleton ("test\test", 1) = 0 Then > MsgBox(0, "Warning", "An occurence of test is already running") > Exit > EndIf > *$MAIN = GUICreate("", 200, 100, -1, -1) > GUISetState() > While 1 > $MSG = GUIGetMsg() > If $MSG = $GUI_EVENT_CLOSE Then Exit 0 > WEnd
> On 12/10/05, SLee <shiblee....@gmail.com> wrote:
> > Hello AutoIters, > > What is the syntax or function by which I can know that there is > > already an instance of my application running? Because I don't want to > > run my application several times (at a time in one PC).
> Dear Sandel, > Thank's for your help. I could not understand the "test\test" parameter. > what is the first test and what is the right test? one is my application and > one is a function? Please describe a little more. I saw the help file even > and could not understand this.
> Thanks again.
> Shiblee
> On 12/10/05, Sandel Perieanu <psandu...@gmail.com> wrote:
> > *#include "Misc.au3" > > *#include "GuiConstants.au3" > > *If _Singleton ("test\test", 1) = 0 Then > > MsgBox(0, "Warning", "An occurence of test is already running") > > Exit > > EndIf > > *$MAIN = GUICreate("", 200, 100, -1, -1) > > GUISetState() > > While 1 > > $MSG = GUIGetMsg() > > If $MSG = $GUI_EVENT_CLOSE Then Exit 0 > > WEnd
> > On 12/10/05, SLee <shiblee....@gmail.com > wrote:
> > > Hello AutoIters, > > > What is the syntax or function by which I can know that there is > > > already an instance of my application running? Because I don't want to
> > > run my application several times (at a time in one PC).