PDA

View Full Version : sending special key sequences to the application


ehzone
January 25th 06, 04:47 AM
How do I configure XP to send special key sequences to an application running
in a window? For example, when I press alt+F4, I'd like the application
running in the window to receive it rather than have Windwos process it.

thanks,
meo

ANONYMOUS
January 25th 06, 05:20 AM
You can't unless the application has its own way to accept short cut
keys.

What application you are using?



ehzone wrote:
>
> How do I configure XP to send special key sequences to an application running
> in a window? For example, when I press alt+F4, I'd like the application
> running in the window to receive it rather than have Windwos process it.
>
> thanks,
> meo

Jon
January 25th 06, 08:15 AM
"ehzone" > wrote in message
...
> How do I configure XP to send special key sequences to an application
> running
> in a window? For example, when I press alt+F4, I'd like the application
> running in the window to receive it rather than have Windwos process it.
>
> thanks,
> meo

If you're willing to learn a little bit of vbscript (with Windows Script
Host), then you could use the functions

AppActivate
SendKeys
Run

to achieve just that.

Details of those "methods" are in the Windows Script Host documentation

http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

Jon

Google