SendKeys use for Hotkey?

  • Thread starter Scott Corrigall
  • Start date
S

Scott Corrigall

I run an application (WinAmp) that allows me to set up hotkeys. I want to
write a macro that will send such a key stroke so that it will be sent from
Word, interpreted as a hotkey usage and thus intercepted by the hotkey
application. (Context: I'm doing transcription of audio files and will use
toolbar buttons and voice commands to do things like Play, Pause, etc so
that my hands won't have to control audio playback; I can keep typing and
simply say "back" to "rewind" as my fingers catch up.)

All the overhead works (toolbars, voice commands, etc) but using the
SendKeys function doesn't get the job done because it sends the simulated
keyboard use directly to Word. It never gets processed as a potential
hotkey.

The only workaround I've found is finding the hotkey's application,
switching it to the foreground and sending the keystroke that way. Although
this works for the hotkey, it fails overall because I can't keep typing
("catching up") once Word loses focus.

Is there any way to use SendKeys or a similar function so that the simulated
keystoke can be intercepted as a hotkey?
 
R

RB Smissaert

Have a look at this thread:
Generic SendInput samples?
In the newsgroup microsoft.public.vb.general.discussion.
It may work for your purpose.

RBS
 

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