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

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich McNeil
Sent:
Sunday, August 03, 2003 1:05 AM
To: [EMAIL PROTECTED]
Subject: [Talk] Activating Applications in Windows 2000

 

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

Boston Software Systems

866 653 5105

www.bostonworkstation.com

 

 

Attachment: focus.regx
Description: Binary data

Reply via email to