Finding number in IE table

Get help with using AutoHotkey and its commands and hotkeys
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


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

	If ( Value = Ext )
		Ext := Ext + 1

MsgBox % Ext

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], milkygirl90, songdg and 39 guests