DonationCoder.com Software > Post New Requests Here
Change default browser script
Contro:
I need the code to change the default browser.
By example
IE-FF-chrome-Safari, etc.
I supposed that run a web with a browser different to the default is :
If the default browser is : IE
and I want to launch a web with FF
Run C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://www.google.com
or perhaps
run "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.google.com
but my target is run websites from a txt file where the path to the browser isn't and don't know the browser finally is on.
:-*
x16wda:
That could be handy... We already have Open Link in New Tab and Open Link in New Window, how about Open Link in New Browser?
skwire:
but my target is run websites from a txt file where the path to the browser isn't and don't know the browser finally is on.
-Contro (February 01, 2014, 10:19 AM)
--- End quote ---
You can do what you want with a simple batch (.bat) file.
--- ---"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.google.com
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.bing.com
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.cnn.com
...
Contro:
I have one script to open in differents tabs for IE .
Exist the equivalent for FF ?
--- ---#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.pongo ; inicial por error al compilar sobre esta lĂnea.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
URL = http://www.google.com/search?q=
navOpenInNewWindow = 1
navOpenInNewTab = 2048
navOpenInBackgroundTab = 4096
navOpenNewForegroundTab = 65536
FileSelectFile, filepath
wb := ComObjCreate("InternetExplorer.Application") ; create IE
wb.Visible := true ; 'false' to not show IE
loop, Read, %filepath%
{
if (A_index = 1)
wb.Navigate2(URL . A_LoopReadLine, navOpenNewForegroundTab) ; Navigate
else
wb.Navigate2(URL . A_LoopReadLine, navOpenInBackgroundTab) ; Navigate
sleep 100
}
return
Contro:
but my target is run websites from a txt file where the path to the browser isn't and don't know the browser finally is on.
-Contro (February 01, 2014, 10:19 AM)
--- End quote ---
You can do what you want with a simple batch (.bat) file.
--- ---"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.google.com
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.bing.com
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" http://www.cnn.com
...
-skwire (February 01, 2014, 11:05 AM)
--- End quote ---
I would like to learn to change the default browser with a script .........
Navigation
[0] Message Index
[#] Next page
Go to full version