Last active
April 26, 2021 15:31
-
-
Save JoeGlines/7c8b205555c986b5eda9ca2c79f81088 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;******************************************************* | |
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY | |
; Right now you can get a coupon code here: https://the-Automator.com/Learn | |
;******************************************************* | |
#SingleInstance,Force | |
#Include ;Remember to put Chrome in your library folder | |
;************************************** | |
;~ page:=Chrome.GetPage() ;Connects to page, but not a specific one | |
;~ page :=Chrome.GetPageByTitle("Joe","startswith") ;This will connect to a specific tab | |
page:=Chrome.GetPageByTitle("Joe","startswith",2) ;This will connect to the second index of a specific tab | |
;~ page.Evaluate("alert('hi');") | |
;~ page:=Chrome.GetPageByURL("https://www.google.com","startswith") ;This will connect to the second index of a specific tab | |
;~ page:=Chrome.GetPageByURL("https://www.google.com","contains") ;This will connect to the second index of a specific tab | |
If !IsObject(page){ | |
MsgBox % "That wasn' t object / the page wasn't found" | |
ExitApp | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment