WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples from Users
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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.zip

Article ID:   W14298
Filename:   TrapKeys alternative to WaitforKey.txt
File Created: 2017:08:29:11:58:56
Last Updated: 2017:08:29:11:58:56