Keymouse icon

Keymouse

  n/a
Certified 100% FREE Freeware   

Remaps the right "Alt" key so it becomes the right mouse button instead. #Keyboard mapper  #Map keyboard  #Remap key  #Keyboard  #Mapper  #Map  

Description

Free Download

The Keymouse application was developed to be a small Windows utility that remaps the right "Alt" key so it becomes the right mouse button instead. Useful for people with only one mouse button.

This program installs a "low level keyboard hook". Whenever the right alt key (VK_RMENU) goes down, we generate a right-mouse-down event. When the right alt key goes up, we generate a right-mouse-up event. To respond to other keypresses instead, look in MSDN or winuser.h

Generation of events is by SendInput(..), a Windows NT/2k/XP function.

The keyboard hook is installed with SetWindowsHookEx(WH_KEYBOARD_LL,...), which is also specific to NT/2k/XP. This hook has the nice feature that it can "gobble up" keyboard events, so they're not seen by the rest of the system. Note: WH_KEYBOARD_LL always sets a global hook and so works for all applications.

But unlike most global hooks (which have to reside in a DLL), the WH_KEYBOARD_LL can instead reside in an EXE. What Windows does is, whenever it receives a keypress, it switches to the context of the EXE that contained the hook, then invokes the hook function, then restores context back to what it was before.

The main routine sets the hook, then creates an invisible top-level window, and when the top-level window gets closed (by ending it in the TaskManager), we unhook the hook. Note: it might seem nicer not to have any window at all, and just to enter an infinite loop.   But (1) with a window we can exit more gracefully (and we can also choose to appear in the Process List of the taskmanager). And (2) keyboard hooks fail to work when there's just a tight infinite loop of Sleep(). It just wasn't working. Then when I created the window and did a message-loop it magically started working. My guess is that the context-switching might internally use the message-loop mechanism, or something like that.

add to watchlist add to download basket send us an update REPORT
  runs on:
Windows All
  file size:
48 KB
  filename:
keymouse.exe
  main category:
System
  developer:
  visit homepage

4k Video Downloader

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Context Menu Manager

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

Windows Sandbox Launcher

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

ShareX

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

calibre

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Zoom Client

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Bitdefender Antivirus Free

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

IrfanView

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

7-Zip

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Microsoft Teams

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

% discount
IrfanView
  • IrfanView
  • 7-Zip
  • Microsoft Teams
  • 4k Video Downloader
  • Context Menu Manager
  • Windows Sandbox Launcher
  • ShareX
  • calibre
  • Zoom Client
  • Bitdefender Antivirus Free
essentials


User Comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy