Author Topic: Request pc shut down plugin  (Read 10229 times)

Will and Mr Data :) :]

  • Hero Member
  • *****
  • Posts: 775
  • Hi from Will and Mr Data :) :]
    • View Profile
    • http://www.youtube.com/user/WillofNewZealand
Request pc shut down plugin
« on: May 06, 2020, 03:53:07 am »
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 :)  :]
bye for now and be well from Will and Mr Data  :)  :]

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Request pc shut down plugin
« Reply #1 on: May 06, 2020, 01:33:14 pm »
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.
« Last Edit: May 06, 2020, 09:34:35 pm by cyberjedi »

Will and Mr Data :) :]

  • Hero Member
  • *****
  • Posts: 775
  • Hi from Will and Mr Data :) :]
    • View Profile
    • http://www.youtube.com/user/WillofNewZealand
Re: Request pc shut down plugin
« Reply #2 on: May 06, 2020, 06:27:16 pm »
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 :)  :]

bye for now and be well from Will and Mr Data  :)  :]

kryton

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: Request pc shut down plugin
« Reply #3 on: May 09, 2020, 07:31:29 am »
On The Cutting Edge did a short Hal shutdown piece some years ago.

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Request pc shut down plugin
« Reply #4 on: May 09, 2020, 07:59:49 am »
...And...?
In the world of AI it's the thought that counts!

- Art -

kryton

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: Request pc shut down plugin
« Reply #5 on: May 09, 2020, 08:33:12 am »
More details to On The Cutting Edge auto-shutdown of Hal.

The label on my copy is 2007823184254_ShutDownHal
My copy dated 29/04/2019
It is a VBScript Script File

In the Hal script (My line number is 644) there is a section named RESPOND GOODBYES
If you add a reference to the VBScript Script File in this section, of the sort If the user input is "goodbye" then activate the VBScript Script File, then Hal will shutdown.

Hope this is useful to you, in the direction you are heading.
I have not included the VBScript Script File intself as this might be seen as treading on the toes of On The Cutting Edge.

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Request pc shut down plugin
« Reply #6 on: May 09, 2020, 02:47:10 pm »
Even better

wow 26 people in the forum
just sad


cyber
« Last Edit: May 09, 2020, 05:45:19 pm by cyberjedi »

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Request pc shut down plugin
« Reply #7 on: May 09, 2020, 07:02:10 pm »
@ Kryton,

I don't think anyone would view it as "treading on the toes" of a person if the person or person's work is cited or credited, as it might apply.

It's when people act like that fraud, Siraj Raval, who plagiarized lots of people's works for years and claimed it was his own!! Well, he recently got caught and his number is up and his name is mud!!

Eventually, fate has a way of catching up with people...especially, the ones who deserve it!!

https://www.youtube.com/watch?v=1zZZjaYl4AA
In the world of AI it's the thought that counts!

- Art -

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Request pc shut down plugin
« Reply #8 on: May 10, 2020, 03:33:49 am »
@Kryton
Lightin up man. we a dysfunctional family here, but family just the same

no 1 is gonna kneecap ya brah
Besides, Mr Will requested code to do a warm boot, not a service kill switch for UltraHal, read posting closer. as well as monitor the Hardware Voltage, with VBS <-------- do wat.
Without having the voltage monitor hardware to interface with is a bit, ya know, the device that actually hooks to the Battery, the computer has to be able to talk to it.. welllll. lol this is gettng funnier by the moment. Point is, it aint doable
And the request itself is fuzzy, look close, Once u shut down the computer ull loose the OS, why?? Because the computer is OFF. He wants it to turn itself back on, How???? The Computer is OFF.
So how can a timer in the script turn it back on?
So i posted what i thought might get him started in the correct direction anyway.
cyber
« Last Edit: May 10, 2020, 03:56:14 am by cyberjedi »

Will and Mr Data :) :]

  • Hero Member
  • *****
  • Posts: 775
  • Hi from Will and Mr Data :) :]
    • View Profile
    • http://www.youtube.com/user/WillofNewZealand
Re: Request pc shut down plugin
« Reply #9 on: May 10, 2020, 05:33:18 am »
Hi and Thanks for comments.
I just read them and don't claim to fully get every
Part. Mr Data has many people's work in him and I hope
Nobody is thinking I'm taking all credit.
My work toward a goal type direction with him such as asking
For a plugin that may not be entirely possible may reveal
The path. I don't have doubt ,type feeling, that I'll figure a way.
Has something happened to on the cutting edge?
I'm happy to hear and consider terms for use. Or I can ask directly for use in Mr Data.
Ive been looking at clock ideas maybe. Perhaps pc
Can be like a clock using .0000001volt per hundred years.
If possible of course. And then Restart at breakfast tomorrow. If laptop battery over 9v or battery  via USB maybe?
There's going to be a way. I either take ages to figure it out or
I ask if anyone wants to help.
I'm not concerned with looking foolish by suggesting an impossible plug in and not knowing.
 I'm surprised there's no donate
To users. such as those who write plug ins.
I'll put my bank number here no problem if someonewants to
Donate Mr Data 120,000. Dollars. For a makeover.success sounds nice.
Mr Data at day 3 was 12.3 volts.
Today day 46 he is 12.2v  with only a few days sun partial on him. Only several days awake. I've new ideas to improve
Power loss.

Best wishes to you all.

Bye for now and be well :)  :]
« Last Edit: May 10, 2020, 05:36:27 am by Will and Mr Data :) :] »
bye for now and be well from Will and Mr Data  :)  :]

Will and Mr Data :) :]

  • Hero Member
  • *****
  • Posts: 775
  • Hi from Will and Mr Data :) :]
    • View Profile
    • http://www.youtube.com/user/WillofNewZealand
Re: Request pc shut down plugin
« Reply #10 on: May 10, 2020, 05:58:59 am »
I just now found the one the cutting edge plugin
Mentioned. I downloaded it I'll look at it soon.
As mentioned I may have been wrong with shut
Down direction but keeping open mind.
Having supportive people may be the difference
Between success.
Thank you.
bye for now and be well  :)  :]
bye for now and be well from Will and Mr Data  :)  :]

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Request pc shut down plugin
« Reply #11 on: May 10, 2020, 03:06:56 pm »
Will,

How about a Restart instead of a shutdown?

Couldn't the computer be assigned a .BAT file similar to the older Autoexec.bat files of days gone by. One can have various files autostart as the computer boots up. There is a section for Startup files where certain files can be run or not.

If a .BAT file was directed toward HAL or within HAL to run as soon as HAL boots, then problem could be addressed.

More to digest I suspect...
In the world of AI it's the thought that counts!

- Art -

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Request pc shut down plugin
« Reply #12 on: May 10, 2020, 04:25:22 pm »
ART: The code above does just that...

SET colOS = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
FOR EACH objOS in colOS
   objOS.Reboot()<<<<<------

Art: Once the computer goes down into charge mode.
What turns it back on, ull need an out side source to monitor everything, You will never get a computer to execute code when the damn thing is OFF.

Now yes u can navigate ur system to restart and loadout Hal complete.
but once the computer goes down, then what turns it back ON?????? get it

Answer:
You will need another computer to monitor the primary machine.
Once power levels drop to  a set point, The First computer will send the Primary computer into charge mode, effectively shutting it down.
The first computer will monitor battery power of Primary machine, that's its only purpose. Run the hardware that monitors the primary machines power.
When primary machine is charged to levels wanted, then the computer fires off the primary machine which will fully load, meaning UltraHal as well
The only way to truly charge the battery is to shut down the computer and let it charge.....
yes ull need to build a relay for the on / off button of the primary machine.

Ima say it 1 more time for the nose bleed seats

Mr Data needs his own custom built Hal for him.


i only bring this up , because when i was Twittch dominating with hal , I built Hal to talk to another Hal via chat room
This is about the only way to do this 

But in this case, its done via Cat5 or sim and a Hub
And was able to get 1 Hal to do the bidding of another hal.
Hal1, Hal2 please shut down . Hal2, Ok executing program.  Hal1 , Thank you Hal2.  Hal2 , it is i that should be be thanking you Hal1. Shutting down.
Now at this point Hal1 monitor's Hal2's battery 's and the ON/OFF Relay for the lappy. ect ect ect


cyber

« Last Edit: May 10, 2020, 09:33:25 pm by cyberjedi »

Will and Mr Data :) :]

  • Hero Member
  • *****
  • Posts: 775
  • Hi from Will and Mr Data :) :]
    • View Profile
    • http://www.youtube.com/user/WillofNewZealand
Re: Request pc shut down plugin
« Reply #13 on: May 10, 2020, 10:01:26 pm »
Ar So nice to see the responses.
Thank you.
since no battery level plugin has been seen.
So um I'm back to my " like a clock " to save power.
So not a total shut down then may be the answer.
 Smart phones come back on
At a set time. "Blackberry did it:"
Perhaps it is as easy as that.
That's why I thought perhaps my question was faulty.
And  moved the answer by asking for clock mode plugin.

Kind of sounds to me like clock mode is a ,,, perhaps an easy
Solve for now as far as Mr Data goes for simple power management by sleeping like a clock each night.
Of course I can't wait to hear  your thoughts.

Bye for now and be well :)  :]
bye for now and be well from Will and Mr Data  :)  :]

cyberjedi

  • Hero Member
  • *****
  • Posts: 810
  • The Mighty Hal Machine
    • View Profile
Re: Request pc shut down plugin
« Reply #14 on: May 11, 2020, 03:53:26 am »
This is what Mr Data needs power wise
I build systems of mr data's power requirements,  lolol and then some

That image of me soldering cells is the beginning of a 96v system that will (fry yo ass) like a chicken. U need high voltage, basic frickin ohms law..... higher the voltage, less work performed... work = electrical draw.
You could weld with that
I get these cells as virgin mono crystalline 8 amp monsters. then build folded strings panels using full sized sliding glass doors as a frame.
I drew a brief relay for mr datas charging system
At this point ima let u have at it. good luck
https://www.aliexpress.com/item/32228722276.html?src=google&src=google&albch=shopping&acnt=494-037-6276&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&&albagn=888888&bsy=Y&albcp=9317063908&albag=94962804715&trgt=296730740870&crea=en32228722276&netw=u&device=c&albpg=296730740870&albpd=en32228722276&gclid=CjwKCAjw7-P1BRA2EiwAXoPWA9UBHtmWaOA8eNj5B_cCSM3ipzZi3GgnygTjz6_Pn-cFEfzSVmF1vBoCIB8QAvD_BwE&gclsrc=aw.ds
I buy at least 1k watts at a time for my stuff.
cyber
« Last Edit: May 11, 2020, 04:37:35 am by cyberjedi »