Cant WMI do this?
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)