|
Rather than downloading and installing TweakUI, simply save and run the attached registry macro as
in: regedit
focus.regx.
Then reboot. To test the focus situation on a PC, run
the following Boston WorkStation script: Sub test() Connect "asdf",
stStream ‘enables Wait Wait 7
‘click on
several other applications while waiting Activate "Boston WorkStation" ‘WorkStation’s toolbar icon will flash orange
if there’s a problem End Sub -----Original Message----- Many of you scripting in Windows
2000 have had problems getting your scripts to 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 866 653 5105 |
focus.regx
Description: Binary data
