Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created April 22, 2021 20:30
Show Gist options
  • Save JoeGlines/fccabfd03c1d1b19ccb33d4012614f13 to your computer and use it in GitHub Desktop.
Save JoeGlines/fccabfd03c1d1b19ccb33d4012614f13 to your computer and use it in GitHub Desktop.
;*******************************************************
; 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
pwb := WBGet() ;Get handle to IE Page
Tab:=pwb.document.getElementsbyClassName("t1tease")[0].getElementsbyTagName("Table")[1] ;Create an "alias" to the table
Loop, % Tab.getElementsbyTagName("TR").length { ;loop over each row
Row:=Tab.getElementsbyTagName("TR")[A_Index+1] ;create an alias for the current row
State:=row.getElementsbyTagName("TD")[0].InnerTEXT
TaxDollper1000:=row.getElementsbyTagName("TD")[1].InnerTEXT
Rank:=row.getElementsbyTagName("TD")[2].InnerTEXT
data.=State A_tab TaxDollper1000 a_tab Rank "`r"
State:=TaxDollper1000:=rank:=""
}
DebugWindow(data,Clear:=1,LineBreak:=1,Sleep:=500,AutoHide:=0) ;Show output in debug window for studio. If you're not using ahk Studio, use a message box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment