Re: How to hide a program?

2007-06-21 Thread jay graves
On Jun 20, 10:43 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote:
> * jvdb (Wed, 20 Jun 2007 08:22:01 -0700)
> http://www.ntwind.com/software/utilities/hstart.html

I'm not the OP but this looks very useful to me.

Thanks.
...
Jay Graves


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-21 Thread jvdb
Hi all,

thanks very much! it was indeed how i compiled to .exe
After using the windows= , my issue was solved. Thanks to all who took
the time on helping me.

Jeroen

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread Gabriel Genellina
En Wed, 20 Jun 2007 11:26:09 -0300, jvdb <[EMAIL PROTECTED]>  
escribió:
> On 20 jun, 15:59, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> jvdb wrote:

>> > Is it possible to start a program 'hidden' or minimized to at least
>> > the system tray? And, if yes., could some one help me on this?
>>
>> I'm not exactly sure what you  mean here, but I guess you want the
>> command-window suppressed. You can do so by naming your scripts *.pyw,
>> which will invoke pythonw.exe instead. That has no command-window.
>
> I forgot to mention that i have created a Windows executable of the
> script.

How did you create it? Using py2exe? Use windows=your_program.py instead  
of console=... in your setup script.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread David Wahler
On 6/20/07, jvdb <[EMAIL PROTECTED]> wrote:
> The thing is, i don't want to see anything of my program, just the
> launched program.
> I already have the program working. But when i create an executable of
> it with py2exe and start it, i don't want to see that it is running,
> perhaps just in the systemtray. That is my problem.

Try renaming your main script to have a .pyw extension as Diez said,
or use the --windows option when running py2exe.

http://mail.python.org/pipermail/python-list/2003-December/241319.html

-- David
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread Thorsten Kampe
* jvdb (Wed, 20 Jun 2007 08:22:01 -0700)
> The thing is, i don't want to see anything of my program, just the
> launched program.
> I already have the program working. But when i create an executable of
> it with py2exe and start it, i don't want to see that it is running,
> perhaps just in the systemtray. That is my problem.

http://www.ntwind.com/software/utilities/hstart.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread jvdb
On 20 jun, 17:05, Larry Bates <[EMAIL PROTECTED]> wrote:
> jvdb wrote:
> > Hi all,
>
> > I've created a program that receives files and opens the corresponding
> > program (for example adobe acrobat). However, when started, i would
> > like to see nothing of the running program. I only want to see the
> > program that will be opened.
> > Is it possible to start a program 'hidden' or minimized to at least
> > the system tray? And, if yes., could some one help me on this?
>
> > Thanks already!
>
> > Jeroen
>
> You can do this with:
>
> import win32process
>
> STARTUPINFO=win32process.STARTUPINFO()
> STARTUPINFO.dwX=0
> STARTUPINFO.dwY=0
> STARTUPINFO.dwXSize=800
> STARTUPINFO.dwYSize=600
> execute_target="enter program to run here"
> commandLine=None
> processAttributes=None
> threadAttributes=None
> bInheritHandles=0
> dwCreationFlags=0
> currentDirectory=None
> #
> # Start the program
> #
> win32process.CreateProcess(execute_target,
>commandLine,
>processAttributes,
>threadAttributes,
>bInheritHandles,
>dwCreationFlags,
>newEnvironment,
>currentDirectory,
>STARTUPINFO)
>
> -Larry Bates

Hi Larry,

The thing is, i don't want to see anything of my program, just the
launched program.
I already have the program working. But when i create an executable of
it with py2exe and start it, i don't want to see that it is running,
perhaps just in the systemtray. That is my problem.

thanks!
Jeroen

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread Larry Bates
jvdb wrote:
> Hi all,
> 
> I've created a program that receives files and opens the corresponding
> program (for example adobe acrobat). However, when started, i would
> like to see nothing of the running program. I only want to see the
> program that will be opened.
> Is it possible to start a program 'hidden' or minimized to at least
> the system tray? And, if yes., could some one help me on this?
> 
> Thanks already!
> 
> Jeroen
> 
You can do this with:

import win32process

STARTUPINFO=win32process.STARTUPINFO()
STARTUPINFO.dwX=0
STARTUPINFO.dwY=0
STARTUPINFO.dwXSize=800
STARTUPINFO.dwYSize=600
execute_target="enter program to run here"
commandLine=None
processAttributes=None
threadAttributes=None
bInheritHandles=0
dwCreationFlags=0
currentDirectory=None
#
# Start the program
#
win32process.CreateProcess(execute_target,
   commandLine,
   processAttributes,
   threadAttributes,
   bInheritHandles,
   dwCreationFlags,
   newEnvironment,
   currentDirectory,
   STARTUPINFO)


-Larry Bates
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread jvdb
On 20 jun, 15:59, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> jvdb wrote:
> > Hi all,
>
> > I've created a program that receives files and opens the corresponding
> > program (for example adobe acrobat). However, when started, i would
> > like to see nothing of the running program. I only want to see the
> > program that will be opened.
> > Is it possible to start a program 'hidden' or minimized to at least
> > the system tray? And, if yes., could some one help me on this?
>
> I'm not exactly sure what you  mean here, but I guess you want the
> command-window suppressed. You can do so by naming your scripts *.pyw,
> which will invoke pythonw.exe instead. That has no command-window.
>
> Diez

Hi Diez,

I forgot to mention that i have created a Windows executable of the
script.
What i want is to run the application minimized in the system tray or
totally hidden.

regards,
Jeroen

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to hide a program?

2007-06-20 Thread Diez B. Roggisch
jvdb wrote:

> Hi all,
> 
> I've created a program that receives files and opens the corresponding
> program (for example adobe acrobat). However, when started, i would
> like to see nothing of the running program. I only want to see the
> program that will be opened.
> Is it possible to start a program 'hidden' or minimized to at least
> the system tray? And, if yes., could some one help me on this?

I'm not exactly sure what you  mean here, but I guess you want the
command-window suppressed. You can do so by naming your scripts *.pyw,
which will invoke pythonw.exe instead. That has no command-window.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


How to hide a program?

2007-06-20 Thread jvdb
Hi all,

I've created a program that receives files and opens the corresponding
program (for example adobe acrobat). However, when started, i would
like to see nothing of the running program. I only want to see the
program that will be opened.
Is it possible to start a program 'hidden' or minimized to at least
the system tray? And, if yes., could some one help me on this?

Thanks already!

Jeroen

-- 
http://mail.python.org/mailman/listinfo/python-list