Thanks Jeff, this too looks like it would work fine, as long as you got your wrapper just right.
I'll probably use this, just mentioning that a single mis-placed apostrophe in front of the function line, and your crashing script is accidentally running even though you didn't mean for it to. Chip ------------------------------ Chip Orange Database Administrator Florida Public Service Commission chip.ora...@psc.state.fl.us (850) 413-6314 (Any opinions expressed are solely those of the author and do not necessarily reflect those of the Florida Public Service Commission.) > -----Original Message----- > From: Jeff Weiss [mailto:jnwe...@lwsb.org] > Sent: Monday, July 06, 2009 4:13 PM > To: gw-scripting@gwmicro.com > Subject: Testing scripts > > I realize that this is very simple, but whenever I test a > script, I just > load my > Blank.vbs > File and place everything inside a function like this: > > ' Blank.vbs > > Dim myHotkey : Set myHotkey = > Keyboard.RegisterHotkey("Alt-Control-Shift-I","Funct") > > Function Funct() > Speak "Put the function that starts the script right here!" > Sleep 2000 > End Function > > Then you can load the script when Window-Eyes starts, but it will not > fire until you press the hotkey. > If your script will run without a hotkey, just remove the hotkey line, > and get rid of the function wrapper. > This should let you test something that you are worried about crashing > the system, and when Window-Eyes is restarted, the code will > not execute > until the hotkey is pressed. > Maybe some things could not be tested this way, but many > certainly can. > Jeff Weiss >