Jump to content

rashriaz

Members
  • Posts

    2
  • Joined

  • Last visited

rashriaz's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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
  2. Hi Im trying to create a script that will auto switch from the 2 open windows. I have found the following script but nothing happens when I run it. While 1 ;loop indefinitely WinActivate("firefox","") ;give focus to firefox Sleep(30000) ;sleep 30 seconds WinActivate("excel","") ;give focus to excel Sleep(30000) ;sleep 30 seconds WEnd Any ideas where am going wrong ? Thanks
×
×
  • Create New...