Many of you scripting in Windows 2000 have had problems go getting your scripts set the focus to applications on your desktop, in order, for example, to send keystrokes to them.  This is due to a setting in the operating system which prevents an application from grabbing focus while the user is, say, typing a letter in Word.  TweakUI is a Microsoft toolkit that allows you to change this setting.  Download it from the following location:

 

http://www.microsoft.com/ntworkstation/downloads/PowerToys/Networking/NTTweakUI.asp

 

install it, run it from the Control Panel, and, under its General tab, uncheck “Prevent applications from stealing focus”.  With this change, VB’s AppActivate, and the WorkStation’s Activate and Windows Connection should not have difficulty in setting focus as necessary.

 

This utility also works with Windows 9x, so if you are having focus problems in these environments, this utility may be of assistance there.  There is a corresponding utility for Windows XP, but the default setting for this box is unchecked, so no further action is required.

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com

 

 

Reply via email to