Source language: Translate to:

Opening browsers in script

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Opening browsers in script

Postby stevec » Fri Sep 19, 2014 10:00 am

I have a script that I am trying to run.

It opens a browser to install an app, then I'd like to to open another window to install another app (different URL)


If "[CheckBox4]" "=" "checked"
.InternetLink "http://XXXXX/Inspections/publish.htm"
Run "!C:\Program Files\Internet Explorer\iexplore.exe" "http://XXXXXX/Inspections/publish.htm" "Wait" "" ""
Delay "500"
Else
If "[CheckBox5]" "=" "checked"
DOSCommand "msiexec" " /i G:\XXXXXXX.msi" "RunOnce+Wait"
Else
If "[CheckBox6]" "=" "checked"
.InternetLink "http://XXXXXX:19005/LSO/index.html"
Run "!C:\Program Files\Internet Explorer\iexplore.exe" "http://XXXXXX:19005/LSO/index.html" "Wait" "" ""
Else


It works on the first browser open, and then fails.

What I'd like to do is open the browser to install an app, then close the browser and have the script open the browser to another link.

Ideas? thoughts?
Steve Christensen
stevec
 
Posts: 223
Joined: Fri Apr 15, 2005 7:33 am
Location: Boise, Idaho

Re: Opening browsers in script

Postby stevec » Fri Sep 19, 2014 2:25 pm

I found a way to do this. long way around but it works

If "[CheckBox4]" "<>" "checked"
GotoLine "Next "If "[CheckBoxX]" "<>" "checked" statement ""
Else
If "[CheckBox4]" "=" "checked"
.InternetLink "http://XXXXX/Inspections/publish.htm"
Run "!C:\Program Files\Internet Explorer\iexplore.exe" "http://XXXXXX/Inspections/publish.htm" "Wait" "" ""
Else
If "[CheckBox5]" "<>" "checked"
GotoLine "Next "If "[CheckBoxX]" "<>" "checked" statement ""
Else
If "[CheckBox5]" "=" "checked"
DOSCommand "msiexec" " /i G:\XXXXXXX.msi" "RunOnce+Wait"
Else
If "[CheckBox6]" "<>" "checked"
GotoLine "Next "If "[CheckBoxX]" "<>" "checked" statement "
If "[CheckBox6]" "=" "checked"
.InternetLink "http://XXXXXX:19005/LSO/index.html"
Run "!C:\Program Files\Internet Explorer\iexplore.exe" "http://XXXXXX:19005/LSO/index.html" "Wait" "" ""
Else
Steve Christensen
stevec
 
Posts: 223
Joined: Fri Apr 15, 2005 7:33 am
Location: Boise, Idaho


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests