Jump to content

Recommended Posts

Posted (edited)

In this thread, it was discussed how to intercept the special Func keys press (Fn keys like muting speakers) coming from laptop and keyboards.  It has always been a challenge to find a way to perform such task.  The solution was passing through the monitoring of OutputDebugString API messages.  Using this UDF, it was possible to read the debug stream coming from any process and see when a Fn key was pressed.  The problem with the UDF is that it requires a DLL and there is no support to x64.  Looking the C++ code, it became clear that there was no need for C++ DLL as the code was simply requesting a few WinAPI.

So here's a rewrite of the code solely in AutoIt.  For those interested into the mechanics of the OutputDebugString API, you can read about the protocol here.  The original code can be found there.

Included in the file is the UDF and a simple Debug Event Viewer. DebugViewer.zip

 

Edited by Nine

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...