[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Minor win install improvement
From: |
motiv4u |
Subject: |
Re: [Bug-gnubg] Minor win install improvement |
Date: |
Thu, 17 Sep 2009 13:31:58 +0200 |
Without mutex, you can just check the window name, i.e. GNU Backgammon
Checking for a Window name
Instead of class it is possible to find a window if an application
looking for windowname.
function FindWindowByWindowName (const WindowName: String): Longint;
http://www.vincenzo.net/isxkb/index.php?title=Detect_if_an_application_is_running
This should be reliable, unless the user has another window open with
the same "GNU Backgammon" title... most unlikely
N.
On Thu, Sep 17, 2009 at 1:01 PM, Massimiliano Maini <address@hidden> wrote:
> 1 -It seems it is possible to detect gnubg is runnig when the
> InnoSetup installer is launched (check the section Application is
> running):
>
> http://www.vincenzo.net/isxkb/index.php?title=Application_considerations
>
> Does gnubg create such a mutex ? If yes, what's the mutex name ?
> If no, can we do it so that I can add the check to the installer ?
>
> MaX.
>
>
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>
--
"He is no fool who gives up what he cannot keep to gain what he cannot
lose." -Jim Elliot