johnnyfla123 Posted October 12, 2014 Posted October 12, 2014 i am having a bit of trouble having autoit lookup a object/class and return the value. I have tried various things but i cannot get it to work. I am trying to pull the object corpAcctNbr and have it copy the value which changes on every account that is looked up. <input name="acctMgrSubID" type="hidden" value="123456"> <input name="corpAcctNbr" type="hidden" value="123456789"> i also see that number here along with other info i want to pull like email and phone number: <tbody><tr> <td width="30%" class="textR" nowrap="nowrap"> Acct. Number: </td> <td width="70%" class="dataL"> 123456789 (NextOS) <span style="color: red;"</span> </td> </tr> and this would be pulling an email. <tr> <td width="10%" class="label" nowrap="" style="text-align: right; vertical-align: top;"> <div style="margin: 0px 0px 0px 10px; height: 10px; padding-top: 10px; padding-bottom: 10px;">Billing Email:</div> </td> <td width="90%" style="vertical-align: top;" colspan="3"> <div style="margin: 0px 0px 0px 10px; height: 10px; padding-top: 10px; padding-bottom: 10px;"> myemail@hotmail.com </div> </td> </tr> i would like info on the second parts with the tr and td. but i am trying to figure out the object corpAcctNbr part first. here is my code: #include <IE.au3> #include <MsgBoxConstants.au3> $hWin = WinActivate("myurl") Local $oIE = _IEAttach($hWin, "embedded", 1) Local $oForm = _IEFormGetObjByName($oIE, "form_1") Local $oText = _IEFormElementGetObjByName($oForm, "corpAcctNbr") MsgBox($MB_SYSTEMMODAL, "Value of", _IEFormElementGetValue($oText)) _IEQuit($oIE)
johnnyfla123 Posted October 12, 2014 Author Posted October 12, 2014 (edited) With the tr and td ones. (Which also displays the account number i am trying to pull with the other method i am asking about above) i have tried using _IEGetObjById Do you think this method would be possible to do if i try and pull based off each string in the tr td parts? #include <string.au3> #include <array.au3> $string = '<strong>Cloth</strong><br /> <a href="/wool">Wool</a> <span class="sort-data hide">1 Wool</span>' $wool = _StringBetween($string, '<a href="/wool">', '</a>') _ArrayDisplay($wool) $1wool = _StringBetween($string, '<span class="sort-data hide">', '</span>') _ArrayDisplay($1wool) Sorry for for the sloppy post on mobile. Essentially i just need autoit to copy the phone number account numbers and the phone number. Once copied i am going to have autout autoit paste each value into i ticket system Edited October 12, 2014 by johnnyfla123
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