Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Trapkeys alternative to WaitforKey

Keywords:   waitforkey trapkeys

If you need/want more than waitforkey() has to offer this may meet your needs.

Note uses exclusive(@on), runs not badly on a 233MMX with 64MB.

This code monitors key presses but the results are based on the OEM keyboard keycodes on your system.

The Trapkeysdemo.wbt file contains a demo script and the actual script (Trapkeys.wbt) has a little wizard in it to help define any hot keys. I wrote it because there have been numerous posts asking about trapping keystrokes beyond the waitforkeys() function and I was curious to see what I could come up with.

	Trapkeys.wbt
and
	Trapkeys demo.wbt

Article ID:   W14298
Filename:   TrapKeys alternative to WaitforKey.txt