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


  1. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #1

    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.

    Cheers
    jimbo
      My Computer


  2. Posts : 6
    Windows 7 Ultimate x64 SP1
       #2

    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 Computer


  3. Posts : 27
    ubuntu
       #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 - reboot.pro although that's a bit too much as an example.

    The file ServiceKick.au3 includes the functionality you ask about.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 12:55.
Find Us