thanks for your help guys, ive looked in the help file and made some progress.
the script is now opening firefox and excel but its not switching between the 2.
Run ("C:Program FilesMicrosoft OfficeOffice14excel.exe")
Run ("C:Program Files (x86)Mozilla Firefoxfirefox.exe")
while 1
WinSetOnTop("[CLASS:Excel]", "", 0)
WinActivate("[CLASS:MozillaWindowClass]")
WinSetOnTop("[CLASS:MozillaWindowClass]", "", 10)
Sleep(10000)
WinSetOnTop("[CLASS:MozillaWindowClass]", "", 0)
WinActivate("[CLASS:Excel]")
WinSetOnTop("[CLASS:Excel]", "", 10)
Sleep(10000)
WEnd