Groups | Blog | Home
all groups > dotnet compact framework > september 2005 >

dotnet compact framework : RegisterHotKey


farseer
9/21/2005 10:12:19 PM
Can more than one process register/unregister a key if each process is
using a different MessageWindow?
Ginny Caughey [MVP]
9/22/2005 10:54:30 AM
Since the docs don't really say, I think you're going to have to experiment.
Either it will work the way you want, or the last process that registers a
hotkey will win.

--

Ginny Caughey
..NET Compact Framework MVP


[quoted text, click to view]

farseer
9/22/2005 8:55:06 PM
ok, i'll try that...but i just thought of something...if i used a GUID
for the id parameter of registerHoteKey, that should prevent other
processes from unregistering that key with my process' MessageWindow,
no?
Ginny Caughey [MVP]
9/23/2005 5:06:00 PM
I haven't tried that so I really don't know. If it works, let me know
though!

--

Ginny Caughey
..NET Compact Framework MVP


[quoted text, click to view]

farseer
9/23/2005 9:36:19 PM
Alas, it does not seem to work.
i think what might be happening is the other process is using
UnregisterFunc1 rather UnregisterHoteKey.
Ginny Caughey [MVP]
9/24/2005 5:49:25 PM
Thanks for the follow up.

--

Ginny Caughey
..NET Compact Framework MVP


[quoted text, click to view]

AddThis Social Bookmark Button