Re: [wxlua-users] reboot

2007-10-01 Thread Tobbe Lundberg
> Awesome! This is great :) But it doesn't seem to offer the possibility > to logoff. However, I found wxExecute that might be able to help me. > It says "If the child process IO is redirected, under Windows the > process window is not shown by default". Can someone please help me > out how to use

Re: [wxlua-users] reboot

2007-09-30 Thread Tobbe Lundberg
> > Doesn't wx have any way of rebooting/loging off the computer? > > The cvs version, or next version 2.8.6 coming in the next week or so, > has wxShutdown(). > http://www.wxwidgets.org/manuals/stable/wx_processfunctions.html#wxshutdown Awesome! This is great :) But it doesn't seem to offer the p

Re: [wxlua-users] reboot

2007-09-30 Thread John Labenski
On 9/30/07, Tobbe Lundberg <[EMAIL PROTECTED]> wrote: > > That command window will always appears as far as I know, you can't hide > > it. > > Someone told me to use CreateProcess, but I couldn't figure out how to use it. > > Doesn't wx have any way of rebooting/loging off the computer? The cvs ve

Re: [wxlua-users] reboot

2007-09-30 Thread Tobbe Lundberg
> That command window will always appears as far as I know, you can't hide > it. Someone told me to use CreateProcess, but I couldn't figure out how to use it. Doesn't wx have any way of rebooting/loging off the computer? -

Re: [wxlua-users] reboot

2007-09-30 Thread Attila
That command window will always appears as far as I know, you can't hide it. But, on shutdown, it doesn't matter I think :) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.

[wxlua-users] reboot

2007-09-30 Thread Tobbe Lundberg
Hi I'm writing a program entirely in lua where the gui part is done with wxlua. Now I need this program to be able to reboot the computer and to logoff the current user. This program will only be used on Windows, so I tried os.execute("shutdown -r -t 0") and os.execute("shutdown -l -t 0"), and it