You can call your program with a parameter and if the program sees that it 
was called with that parameter, it could first execute some code then exit, 
without reaching to the part where it creates the GUI.

Octavian

----- Original Message ----- 
From: "dwinkjr" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Wednesday, November 05, 2008 10:00 PM
Subject: [perl-win32-gui-users] Run as a gui or command line


>
> I am creating a program that I want to be able to call standalone as well 
> as
> from another program.  When called standalone i want it to open up the gui
> but when called from another program I want it to no produce a gui.  Can
> anyone guide me in the right direction?
> -- 
> View this message in context: 
> http://www.nabble.com/Run-as-a-gui-or-command-line-tp20348810p20348810.html
> Sent from the perl-win32-gui-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great 
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the 
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> http://perl-win32-gui.sourceforge.net/ 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to