Global hotkey

M

Marc Gravell

Just a thought prompted by the chain "Splitting up a string"; ages ago a
wrote (in VB via Windows API dll calls) a global hotkey app that runs
silently, intercepts [Ctrl]+[Alt]+V, converts the clipboard to a string and
sends [Ctrl]+[V]; I still use it almost constantly, but it is a pain to
maintain.

I couldn't find any native C# support for global hotkey (CLR2.0) - any idea
if this could be re-written in C# without any dll imports in my code?

Marc
 
M

Marc Gravell

For ref (for anybody doing similar) I managed to do the global-hotkey aspect
using SystemHotkey from the Code Project (which wraps up the PInvoke calls
nicely); handy ;-p

(http://www.codeproject.com/cs/miscctrl/systemhotkey.asp)

(minor: note that there is a glitch in the existing (Code Project) code
relating to using more than one modifier, but this is easily overcome by
changing 3 instances of k2= to k2|= in RegisterHotkey (this has previously
been logged but not revised))

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top