Darren,

Good stuff. We should add this to the wiki. Many moons ago, I created a %scripts% environment variable that pointed to my user profile directory so that I can reference it whenever I want. These are all good suggestions.

Aaron

Darren Paskell wrote:
Greetings,

Heres a tip for anyone working with scripts or Window-Eyes
configurations of any kind.

When in an open dialog box, you can easily get to your Window-Eyes
settings directory, using either of these ideas. Both require the
Window-Eyes Immediate Mode Script.

Method A.

1. From Notepad or another editor, press Control-O, or else activate
the Open dialog.
2. When the dialog pops up, press the Immediate Mode Script Hotkey,
Control-Shift-Q by default.
3. Type in this line and press Enter:

FocusedWindow.Control.Replace(ClientInformation.UserProfilePath)

4. Press escape to return to the Open dialog.
5. You should find that the edit box has been populated with your
Window-Eyes settings path.

Method B:

1. Press the Immediate Mode Script Hotkey, Control-Shift-Q by default.
2. Type in this line and press Enter:

Clipboard.Text = ClientInformation.UserProfilePath

3. Press escape.
Your Window-Eyes settings path is now on the Windows Clipboard.

Note: I recommend memorising both of those lines. It may seem tricky
at first, but you'll start to develop an awareness of the new
Window-Eyes Object Model in the process. There really is nothing like
using Window-Eyes Scripting to help in your scripting efforts <grin>.

Happy scripting!

Darren


--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to