Does anyone know that ways to get control new tabs? I want to use and navigate new tabs but I don't know how to do that. I googled but I can only find results about java, python and others which not fit for autohotkey. Using driver.getWindowHandles() and driver.switchTo().window(tabs.get(0)) are the soulutions of this problem I think, but I don't know how to change this codes for autohotkey.

driver:= ComObjCreate("Selenium.CHROMEDriver") ;Chrome driver
driver.Get("http://www.google.com")
MsgBox
driver.sendKeys(driver.Keys.CONTROL)
driver.sendKeys(driver.Keys.SHIFT)
Xpath = //*[contains(text(), 'Gmail')]
driver.FindElementByXPath(Xpath).click()
/*
; I don't know how to get a control of the second new tab
driver.getWindowHandles()
driver.switchTo().window(tabs.get(0))
*/
MsgBox
driver.Get("http://the-automator.com/") ; I want to open this url at the second tab(new tab)
MsgBox

Anyone have any idea on how to incorporate the new Firefox Marionette Driver into Selenium?

I found a tutorial that links to the new driver that you have to put into the Selenium Folder but am having no luck trying to convert the Java code to AutoHotKey code.
Here is the link to the article that explains the New Firefox driver: Solving Firefox 47+ Selenium WebDriver problem

Have you tried using AutoHotKey with Selenium 3.x by any chance?
From what I've read there was a big change from SeleniumBasic to Selenium 3, and I haven't seen any posts about anyone using AutoHotKey to control Selenium 3. Is it impossible to control Selenium 3, or has no one really needed to because SeleniumBasic functions without any real issues?