Zabaware Forums > Ultra Hal 7.0
Request pc shut down plugin
Will and Mr Data :) :]:
Hi all.
Please is there a plugin to shut down and restart laptop pc
Next morning based on
Low power. 9v then
Restart next morning.
Thanks for any suggestions.
Bye for now and be well :) :]
cyberjedi:
Will and MR data: Re shut down
I seem to remember that u said ur still running xp
Here ya go
Rem Type=Plugin
Rem Name= Shut down
Rem Author=
Rem Host=All
Rem PLUGIN: PRE-PROCESS
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
HalBrain.ReadOnlyMode = True
'Determines that you are talking about the Computer shutdown
If InStr(1,InputString, "trigger goes here",1) > 0 Then
UltraHal = GetShutDown(HalCommands)
ElseIf InStr(1,InputString, "Trigger goes here",1) > 0 Then
End If
Rem PLUGIN: FUNCTIONS
Function GetShutDown(HalCommands)
strComputer = "." ' Local Computer
SET objWMIService = GETOBJECT("winmgmts:{impersonationLevel=impersonate,(Shutdown)}!\\" & _
strComputer & "\root\cimv2")
SET colOS = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
FOR EACH objOS in colOS
objOS.Reboot()
NEXT
End Function
cyber
its been Revised to reBoot status, ssry
Will, i dont have an XP machine any more so im unable to test, please forgive... I think im spot on.
Will and Mr Data :) :]:
Hi Mr Cyberjedi.
Whaa haa yaaaaaa!
Thank you. I'll look into that very soon.
Old xp yes in Mr Data. 6.2 hal.
Thanks Mr Cyberjedi.
Bye for now and be well and Mr Data :) :]
kryton:
On The Cutting Edge did a short Hal shutdown piece some years ago.
Art:
...And...?
Navigation
[0] Message Index
[#] Next page
Go to full version