Knowing When Your Program Is Already Running

Everything else that doesn't fall into one of the other PB categories.
AussiePup
User
User
Posts: 19
Joined: Fri Jun 20, 2003 4:47 pm
Location: Chapel Hill, NC

Knowing When Your Program Is Already Running

Post by AussiePup »

Can anyone tell me how you could check to see if your program is already running and, if so, give focus to that window? I don't want more than 1 instance of the program running, but have not figured out a way to do this.
Regards,

Martin
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

on the purearea.net there is a lib that checks if your app is already running
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Search is your friend!
viewtopic.php?t=9319
--Kale

Image
AussiePup
User
User
Posts: 19
Joined: Fri Jun 20, 2003 4:47 pm
Location: Chapel Hill, NC

Thanks for the help

Post by AussiePup »

I apologize for not doing a search before posting my request ... I should have realized that I wasnot the only one with this problem. Will try to do better in the future.
Regards,

Martin
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

no prob :wink:
--Kale

Image
Post Reply