Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Any coders -- need hook into Windows for custom key press

17 Jun 2013   #1

W7 X-64 W8.1 X-64 Opensuse 13.1 W2003 Server
Any coders -- need hook into Windows for custom key press

Hi there
Does anybody know if one can code an application in Windows THAT RUNS IN THE BACKGROUND that does NOTHING except react to a specific key press - ideally I'd like some sort of EVENT to be created at event Windows key + (user custom key), then an ACTION can take place. Then I could say create a table which would launch a specific application or program. This could be quite flexible as I could create in the table a combination of Key presses and applications.

Something like this must exist already in Windows as certain key presses already produce specific actions.

I don't have much experience with this but it doesn't look as if the code would be very large.

Any offers -- hopefully it would run in JavaScript or whatever (I've got Visual Studio) so anything supported by Visual studio or Windows would be fine.


My System SpecsSystem Spec

09 Jul 2013   #2

Windows 7 Ultimate x64 SP1

I don't know anything about coding, so i may be misinterpreting your purposes, but it seems to me what you're describing is pretty much AutoHotkey.
My System SpecsSystem Spec
12 Jul 2013   #3


In AutoIt it is really easy with the function HotKeySet. That is basically what I did with RunAtWinlogon which interprets hotkeys at the Windows login screen; RunAtWinlogon - although that's a bit too much as an example.

The file ServiceKick.au3 includes the functionality you ask about.
My System SpecsSystem Spec


 Any coders -- need hook into Windows for custom key press

Thread Tools

Similar help and support threads for2: Any coders -- need hook into Windows for custom key press
Thread Forum
How to play custom sound when I press Ctrl, Alt, Shift, or Win keys? Customization
Rootkit coders beware: Malwarebytes is in hot pursuit Security News
Symbian S60 App coders?????? Hardware & Devices
Microsoft: MSE safe from Windows kernel hook attack News
Microsoft: MSE safe from Windows kernel hook attack Security News
[Paid job] Looking for PHP coders Chillout Room
Hook up Sound & Audio

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 02:31 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33