You can use baexitwindow function:
===========================================
ExitWindows
Description: baExitWindows exits or restarts Windows.
Usage: baExitWindows( Option )
Arguments: String.
Option is the type of exit. Can be:
"reboot" reboots the system
"restart" restarts Windows
"logoff" logs off Windows
"shutdown" shuts down the system
Returns: Void.
Examples: Director:
baExitWindows( "reboot" )
Authorware:
baExitWindows( "reboot" )
Notes: Not all versions of Windows support all the restarting options. If a
particular function is not available, then another mode will be substituted
according to the following table.
The system security settings may prohibit some of these options from
operating.
Windows 3.1 Windows 95 Windows NT
16 bit "reboot" reboot reboot logoff
16 bit "restart" restart restart logoff
16 bit "shutdown" restart shutdown logoff
16 bit "logoff" restart logoff logoff
32 bit "reboot" -- reboot reboot
32 bit "restart" -- restart reboot
32 bit "shutdown" -- shutdown shutdown
32 bit "logoff" -- logoff logoff
===============================================
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Vishesh
Sent: Wednesday, March 07, 2001 12:33 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> Window shutdown with lingo
Hi There everyOne ... !
Thankx alot for the help...
The problem this time is
I have a button in my director movie and what I want
is when I click the button it should shutdown the
windows operating system so I wrote
on mouseup
shutdown
end
that does work in director but it does not work in
runtime i.e. when I creat a projector and when I cilck
the button in that projector it doesn't work it just
relogs me into my network again - - by-the-way I am
working on a network LAN SYSTEM
any help will be highly appriciated
thankx alot in advance
Vish
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]