My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

A simple key injector into Win32 programs. I used it to streamline tedious typing of complex key sequences for my own testing. This code is covered under the GNU Public License, see attached license.

The parsing language is rather simple. Essentially you create a text file that dictates what, when and where each key stroke will go. The language was designed with the idea that all keyboard characters are reachable. Here's an example

#Notepad
Untitled 1 - Notepad
!200
{_a+a}{_c+c}
  • Line 1: The Windows ClassName of the Application (if unsure, run keyghost with -w to list all windows and their childern's windows. (It's a long list). The # character is the indicator to the parser for this attribute.
  • Line 2: The Title of the Window. This must match exactly. There is no special parsing character for this.
  • Line 3: The '!' indicates a time delay between keys. All keys after this will get this time delay. Use another ! to change it again. This is in ms.
  • Line 4:

Character Translations

 < and > ALT Down and ALT Up, respectively,
 { and } Control Down and Control Up, respectively
 ( and ) Shift Down and Shift Up, respectively
 _	Key down. the next alpha-numeric will be marked as a down key
 +	Key up. the next alpha-numeric will be marked as an up key
 a-z 	The alphabet, case insensitive
 0-9 	The numbers
 &	Tab - use (_7+7) to get a real &
 @ 	Return - use (_2+2) to get a real @
 *	F4 - use (_8+8) to get a real *
 $	F5 - use (_4+4) to get a real $
 ^	Up Key - use (_6+6) to get a real ^
 | 	Down Key - you hopefully see the pattern now...

So Line 4 literally decodes to ALT DOWN, A DOWN, A UP, ALT UP, ALT DOWN, C DOWN, C UP, ALT UP This would send a CTRL+A, then an CTRL+C to the program, thus copying all the data in the window.

{_d+d}_f+f 

This decodes to CTRL+D then F

<_*+*>

This decodes to ALT+F4

Powered by Google Project Hosting