Finding number in IE table

Get help with using AutoHotkey and its commands and hotkeys
Trigg
Posts: 97
Joined: 07 Apr 2017, 19:43

Finding number in IE table

07 May 2018, 11:51

Good afternoon,

I am trying to find a specific extension in a table on a webpage. If the loop finds that number, it will loop ( Var + 1 ) until the variable doesn't exist. It is stuck in a loop and I cannot figure out if there is a better way to find a value in a table via IE.

<td class="sortCol">Extension</td>
Extension number: <td class="fieldleft" bgcolor="#eaecef">1466</td>

Code: Select all


IniRead, Ext, Extension.ini, Extension, Extension

ComObjError(False)

Loop	{
	Value := ""
	While ( Value <> Ext )                                                                               
		Value := wb.document.getElementsByTagName("td")[ A_Index-1].innerText, index := A_Index-1

	If ( Value = Ext )
		Ext := Ext + 1
	Else
		Break
		}

MsgBox % Ext

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], DadRabbit, malcev, mikeyww, PuzzledGreatly and 35 guests