Unit ListUnit

Classes

TWienieMacro - true when user presses CTRL-key

Functions

Types

Constants

ControlKey
WM_MyKeyboard

Variables

DllInstance
Hook
HookProc
WienieMacro


Functions


Types


Constants

ControlKey = false

identifies the message sent by the library

WM_MyKeyboard = WM_USER+1001

WienieMC, program to stuff keys into the keyboard-buffer. Made by Anton Bil, abil@mail.HZeeland.nl For this program to run you need one component to be installed: - TrayIcon by Rauf Gereyhanov You can find this file at the Delphi Super Page, or at my download-page: http://www.HZeeland.nl/~abil/download/download.html This page also contains the latest version of this program, and lots of other sourcecode and programs that I have made. This program is based on an example of the use of keybd_event that I found at the delphi.misc newsgroup after two days of searching. Thank you for the suggestion! After that it was quite easy to write the rest. This program can be improved, if you want to, please do, only give credits to me if you use this code. Some improvements I have thought of are: - Increase macro-possibilities: define more macro-commands etc. - Introduce an object for the Mylist, instead of three different arrays. That would be more elegant... Version 2.0: - added keyboard-shortcuts, remember to compile SNOOPDLL first, because it contains a DLL that must be present when the program runs! - deleted unused unit-names from the uses-clause - removed the WindowsL-component from the uses-clause, the program has its own lines of code to activate a window. - added a few times Application.Processmessages, to avoid the keyboard-buffer from getting too full - added a wait before the writing of characters. If you have suggestions, let me know, have fun!

Variables

DllInstance : DWORD

Hook : HHOOK

HookProc : FARPROC

WienieMacro : TWienieMacro