Code: Select all
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://www.google.com")
ie.Navigate("https://www.autohotkey.com",2048)
q::
ie := WBFromUrl(""https://www.google.com")
return
w::
ie2 := WBFromUrl("https://www.autohotkey.com")
return
WBFromUrl(url) {
shell := ComObjCreate("Shell.Application")
loop {
for window in shell.Windows {
if (window.LocationUrl = url)
break 2
}
Sleep 10
}
Return window
}
Is it possible to do this in chrome?
Code: Select all
driver := ComObjCreate("Selenium.ChromeDriver")
driver.AddArgument("--disable-infobars")
driver.AddArgument("--start-maximized")
driver.Get("https://www.google.com")
driver.ExecuteScript("window.open();")
driver.SwitchToNextWindow
driver.Get("https://www.autohotkey.com")