sherkas Posted March 17, 2015 Posted March 17, 2015 Maybe its escaped me, but I cant figure out how to get say the value or text of a label is that updated say via javascript in IE. For example, there is a page that lists the user who created a ticket. Heres the html code of the label: <span id="_ctl0_phMain_fvOrderDetails_lblCreator">randerson</span> How do I get the value of 'randerson' for this? Doing a simple _IEPropertyGetValue doesnt work, and im obviously not understanding this one.
DVDRW Posted March 17, 2015 Posted March 17, 2015 Same here, I have solar controller that sends real time data via web. I want to read it with Autoit. There is javascript beginning of html. I think data is in the variables when i look source. "RTDdata11" etc. How i can read it? <tr> <td height="28" align="center"><div align="right"><span class="STYLE8">Charge Power<span class="STYLE6">(W):</span></span></div></td> <td style="width: 107px" class="style1"> <div id="RTData4" style="width: 93px" class="STYLE7"> </div> </td> <td align="center" style="width: 283px"><div align="right"><span class="STYLE8">Remote Sensor Temp.(</span><span class="style4"><sup>o</sup></span><span class="STYLE6">C</span><span class="STYLE8">):</span></div></td> <td class="style1"> <div id="RTData11" style="width: 93px" class="STYLE7"> </div> </td> </tr> IE9 W7
sherkas Posted March 17, 2015 Author Posted March 17, 2015 Found my solution. Was bad object references I finally got mine by using: $oQuery = _IEGetObjById($oIE, "_ctl0_phMain_fvOrderDetails_lblCreator") ;Element reference _IEPropertyGet( $oQuery, "innertext" ) ;Get value
DVDRW Posted March 17, 2015 Posted March 17, 2015 Works for me also, just have to wait data loaded after _iecreate #include <IE.au3> Local $oIE = _IECreate("http://192.168.137.174/RTData.html",0,0) sleep(2000) $oDiv = _IEGetObjById($oIE, "RTData1") while 1 $voltage = _IEPropertyGet($oDiv, "innertext") sleep(5000) tooltip($voltage) wend Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now