IntControl 61

Syntax:

IntControl (61, p1, 0, 0, 0)

 

Sets WinActivate() method.

 

p1 Method to use

-1 Don't change (just return current setting).

0 Standard method (SetForegroundWindow API call).  

1 Switch to the window, then click on it.

2 Iconize the window, then switch to it. 

3 Change foreground lock timeout. 

4 Attach to the input thread of the foreground window. 

5 Display invisible window, then attach to the input thread of the foreground window 

This IntControl lets you change the current method being used. Some methods may work with some particular windows and not others, so you may need to experiment.

 

Note: The default WinActivate method used:
5 Windows 2000 and newer.
0 Previous versions of Windows

 

Returns previous setting.