CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: Know when laptop lid is closed

    Maybe your laptop doesn't send that message then.
    You may do a registry search for "LidClose", because some laptops have a reg setting for this, that is specific to the machine.

    Are you looking to make this for your computer only?
    What operating system are you using?
    What are your power settings set to do, when the lid closes?

  2. #17
    Join Date
    Sep 2010
    Posts
    10

    Re: Know when laptop lid is closed

    msgbox(m.WParam.ToInt32) says 61458

    I am just making it for my computer.
    I am using windows 7
    The power setting for when the lid closes is "do nothing"

  3. #18
    Join Date
    Sep 2010
    Posts
    10

    Re: Know when laptop lid is closed

    May i ask what time zone you are in?

    I am in +10 GMT but we are also in daylight savings.

  4. #19
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Re: Know when laptop lid is closed

    JamesStewy,

    I thought I read that you wanted to allow a certain time of day, that when the lid is closed it does go into standby, and other times it does not.

    Is this correct?

    Then the simpler solution would be to toggle that setting, on a schedule.
    Switching it between "Do Nothing" and "Standby".
    The title of the thread could of been "Control what happens when laptop lid is closed?".

  5. #20
    Join Date
    Sep 2010
    Posts
    10

    Re: Know when laptop lid is closed

    "Then the simpler solution would be to toggle that setting, on a schedule."

    How do you do that?

Page 2 of 2 FirstFirst 12

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured