Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
Create own software - One program start
Start your application one time
hye, Taoteblue show us today a very intersting tips. Well, here you find somesource code to test if your application is started in the task and it run one item of your appication. Here the code : PUBLIC SUB Form_Open() DIM Sortie AS String EXEC ["pgrep", "-f", "-l", "My_gambas_program_name.gambas"] WAIT TO Sortie IF Split(Trim$(Sortie), gb.NewLine).Count > 1 THEN Message.Info("applcation is started", "Close") ME.Close ELSE 'Continu application ENDIF END Regards Creation date : 10/08/2010 @ 23:28 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|