Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Appologies if this is in the wrong TA -

 

Just curious as to how to make an ocx or dll ( which ever is relevant really ) so that I can execute power status querries via scripting ie vb scripts to querry whether a computer is battery powered or via AC Mains power and if battery how much charge / time it has left

 

any links or some assistance, I mean I did find this from ms

 

System Power Status (Windows)

 

That explains which API's to use afaik but obviously trying to get the API's working in an ocx and then create the ocx and accessing these via a scripting language is a different ball game so require some help with it pls

 

Thanks

Posted
Yes and good to have that as one way to kill a bird figuratively speaking but would still be good to know how to do it via an ocx as seen it suggested that way a few times.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...