+ Post New Thread
Results 1 to 4 of 4
Coding Thread, power status OCX / DLL in Coding and Web Development; Appologies if this is in the wrong TA - Just curious as to how to make an ocx or dll ...
  1. #1

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,294
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365

    power status OCX / DLL

    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

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,736
    Thank Post
    911
    Thanked 1,331 Times in 811 Posts
    Blog Entries
    1
    Rep Power
    447

  3. Thanks to ZeroHour from:

    mac_shinobi (6th October 2009)

  4. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,294
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365
    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.

  5. #4

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,736
    Thank Post
    911
    Thanked 1,331 Times in 811 Posts
    Blog Entries
    1
    Rep Power
    447
    This may have an idea:
    Detect power status of laptop -- vb.net
    But yeh I know what you mean, its good to have extra options. You can also query the WMI directly from an app:
    WMI Made Easy For C#

  6. Thanks to ZeroHour from:

    mac_shinobi (6th October 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. GTDownDE_87.ocx - Help please
    By elsiegee40 in forum Windows
    Replies: 5
    Last Post: 17th December 2008, 06:36 PM
  2. Need OCX files
    By MK-2 in forum Windows
    Replies: 3
    Last Post: 24th November 2008, 02:38 PM
  3. Registering OCX files
    By sidewinder in forum Windows
    Replies: 10
    Last Post: 23rd May 2008, 04:32 PM
  4. Replies: 12
    Last Post: 13th December 2007, 06:02 PM
  5. Power User status for all Staff
    By mrforgetful in forum MIS Systems
    Replies: 7
    Last Post: 10th September 2007, 09:12 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •