473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.
Nov 15 '05 #1
2 1676
Hi Jesper,

"Jesper." <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
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.


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

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

Regards,
Dan
Nov 15 '05 #2
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.
http://www.codeproject.com/csharp/NetWin32Hooks.asp

Girish.
"Jesper." <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
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.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: SKumar | last post by:
Hello: I am trying to implement a publish/subscribe model for an applications I am working on. I would very greatful if anybody could offer me some suggestions. The application basically is a...
4
by: Veriblue | last post by:
Hello Folks I am working on a applications which needs a publish/subscribe model to handle events. There can be various components involved and some maybe out of process. Ideally I would like...
3
by: Lenn | last post by:
I have a class which exposes number of events. If client doesn't subscibe to an event, I get a runtime error when event is raised. What's the way to deal with it?, other than making sure all events...
7
by: Jerry Nixon | last post by:
I hope this is easy, First, I simply must not override MyMethod as shown in the sample code - that is an unbreakable requirement. The purpose of the event is to allow me to extend MyMethod...
0
by: Kamilche | last post by:
''' event.py An event manager using publish/subscribe, and weakrefs. Any function can publish any event without registering it first, and any object can register interest in any event, even...
2
by: gregory_may | last post by:
I am looking for a publish/subscribe mechanism for .Net/Atlas. Does this exist? I need to make web service callbacks to clients when specific events happen. It almost sounds like RSS, but I am...
4
by: Douglas Peterson | last post by:
I created the following code: private struct StackItem { public EventHandler theEvent, theHandler; public StackItem(EventHandler theEvent, EventHandler theHandler) { this.theEvent = theEvent;...
3
by: Ludwig Wittgenstein | last post by:
Hello, all. Does anyone know of documentation about implementing a publish- subscribe model between a .NET Web service provide and a Java service consumer? I have this problem I am trying to...
2
by: michaellwest | last post by:
First of all whoever helps, I really appreciate it. I have written code in C# and exposed methods and events through COM. I have also generated a .tlb file and registered the com dll. I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.