IntControl 45

Syntax:

IntControl (45, p1, 0, 0, 0)

 

Enable/disable "SendKey speedup" in DOS programs in Windows NT.

p1  Meaning

-1  Don't change (returns current setting)

0  Don't speed up SendKey in DOS programs in Windows NT.

1  Speed up SendKey in DOS programs in Windows NT (default).

 

Normally, SendKey, SendKeysTo and SendKeysChild yield processor time between keystrokes allowing other Windows programs to multitask. However, when sending keystrokes to a DOS program in Windows NT, this can yield can result in excessive delays between keystrokes. When this occurs, SendKey goes into "speedup" mode and dominates the processors time.

SendKey speed is also affected by the delay inserted between keystrokes. By default, the delay between keystrokes is 25 milliseconds. This length can be adjusted with IntControl 35. However, when "SendKey speedup" mode is in effect, no such delay is inserted.

IntControl 45 allows you to disable the "SendKey speedup" behavior in the case that it causes problems or is not desired.

Returns previous setting.