| Description: | A shell script to give shutdown and reboot options in a requester window which closes automatically if nothing is selected by jPV^RNO. Can be used for example in Ambient Panels. |
| Developer/Porter: | jPV^RNO |
| Homepage: | http://jpv.wmhost.com/morphos/ |
| Paypal: | |
| Upload Date: | Jul 24 2016 |
| Category: | Scripts/Shell |
| Download: | Shutdown.lha![]() |
| Md5: | 236baa46a1a216b0a51c8870465ca86e |
| Size: | 4 KB |
| Downloads: | 657 |
Screenshot(s)
History
Submit files
Shutdown.lha
14:28
---> C:Shutdown
I changed the script this way so that it works now :
; open requester
RequestChoice >ENV:rcnum "SHUTDOWN" "Press enter to shutdown or wait 10s to cancel." "Shutdown" "Reboot" "Cancel" TYPE=1 TIMEOUT=10
; if "Cancel" is pressed
If $rcnum EQ 0
Quit
Endif
; if "Shutdown" is pressed
If $rcnum EQ 1
C:ShutDown
Quit
EndIf
; if "Reboot" is pressed
If $rcnum EQ 2
C:Reboot
Quit
EndIf