Created
April 22, 2021 20:30
-
-
Save JoeGlines/fccabfd03c1d1b19ccb33d4012614f13 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 | |
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