CODE TAGS!!! ;\)

[ code ] your code goes here... [ /code ] <- but no spaces in the tags!

 Code:
; my prog - what it does
; date - me!

BREAK ON

; Declare variables first
Dim $Rc                   ; Used to trap return codes
Dim $Cmd                  ; command string used for SHELL

; set Script Options to enforce good habits
$Rc = SetOption("Explicit", "ON")
$Rc = SetOption("NoMacrosInStrings", "ON")
$Rc = SetOption("NoVarsInStrings", "ON")

; launch the uninstaller
$Cmd = '%PROGRAMFILES%\Limewire\uninstall.exe'
'Running ' $Cmd ?
Shell $Cmd

; wait for the window to open and then set focus
Do
  Sleep 1
Until SetFocus('LimeWire') = 0
; Can't use $=Setfocus() = 0 - you either assign the var, or test the result
; Classik Koding:
; LVal = RVal
;  where RVal is a value, variable, or result of a function
; RVal is processed first and the result assigned to LVal

; send keystrokes to the active program
$Rc = SendKeys('N')
$Rc = SendKeys('U')
$Rc = SendKeys('F') 

See the comments to explain Lonk's typically terse response. ;\) \:D

Glenn
_________________________
Actually I am a Rocket Scientist! \:D