Announcement

Collapse
No announcement yet.

Run program after laptop lid is opened?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run program after laptop lid is opened?

    I'd like for a program to run after the laptop lid is opened, but I'm not sure how to do it.

    I have a couple of guesses...maybe run some kind of script, or set something in the Registry?
    Or is there a Special Folder?

    Please let me know if you have URLs for where I can read up on these possibilities,

    Thanks!
    -John

  • #2
    John,
    Use RegisterPowerSettingNotification(GUID_LIDSWITCH_STATE_CHANGE)

    Comment

    Working...
    X