Keymouse icon

Keymouse

2 big stars
Keymouse screenshot
Name: Keymouse
Works on: windowsWindows 7 and above
Developer: Lucian Wischik
Version: 1
Last Updated: 26 Feb 2017
Release: 01 Apr 2010
Category: System > System Miscellaneous
Rate this software:
350 downloads
commentsComments
downloadDownload
Liked it? Tell others:
details

Keymouse Details

Works on: Windows 10 | Windows 8.1 | Windows 8 | Windows 7 | Windows 2012
SHA1 Hash: 14768782354f76ff521fff3a5398a9978079a7c4
Size: 49.15 KB
File Format: exe
Rating: 2.52173913 out of 5 based on 23 user ratings
Downloads: 350
License: Free
Keymouse is a free software by Lucian Wischik and works on Windows 10, Windows 8.1, Windows 8, Windows 7, Windows 2012.
You can download Keymouse which is 49.15 KB in size and belongs to the software category System Miscellaneous.
Keymouse was released on 2010-04-01 and last updated on our database on 2017-02-26 and is currently at version 1.
download button
Thank you for downloading from SoftPaz! Your download should start any moment now. It would be great if you could rate and share:
Rate this software:
Share in your network:
features

Keymouse Description

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 theyre 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 theres just a tight infinite loop of Sleep(). It just wasnt 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.
similarSimilar Software
Key Remapper icon
Key Remapper
v 1.1
non-free