Subscribe to os events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesper.

    Subscribe to os events

    Hi,

    Is it possible to subscribe to os events. I would like to
    invoke my program (.e.g. maximize it from the task pane)
    when a certain key combination is pressed. Much like the
    explorer can be started by the windows key + E.

    Is this possible.

    best regards Jesper.
  • Daniel Pratt

    #2
    Re: Subscribe to os events

    Hi Jesper,

    "Jesper." <anonymous@disc ussions.microso ft.com> wrote in message
    news:09dc01c3a5 1e$43297c20$a30 1280a@phx.gbl.. .[color=blue]
    > Hi,
    >
    > Is it possible to subscribe to os events. I would like to
    > invoke my program (.e.g. maximize it from the task pane)
    > when a certain key combination is pressed. Much like the
    > explorer can be started by the windows key + E.
    >
    > Is this possible.
    >
    > best regards Jesper.[/color]

    You would need to setup a windows hook using SetWindowsHookE x (API).
    This KB article covers the basics:

    http://support.microsoft.com/default.aspx?scid=kb;[LN];318804

    Regards,
    Dan


    Comment

    • Girish NS

      #3
      Re: Subscribe to os events

      Hi,

      u can use WIN32 Hooks to accomplish this functionality.

      The following article discusses using hooks in a .NET application which
      might be useful to u.


      Girish.
      "Jesper." <anonymous@disc ussions.microso ft.com> wrote in message
      news:09dc01c3a5 1e$43297c20$a30 1280a@phx.gbl.. .[color=blue]
      > Hi,
      >
      > Is it possible to subscribe to os events. I would like to
      > invoke my program (.e.g. maximize it from the task pane)
      > when a certain key combination is pressed. Much like the
      > explorer can be started by the windows key + E.
      >
      > Is this possible.
      >
      > best regards Jesper.[/color]


      Comment

      Working...