Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Posting to website

$
0
0
  1. #include <Excel.au3>
  2. #include <IE.au3>
  3.  
  4. _ExcelBookOpen("C:\Users\Corey\Dropbox\Allison & Corey\2012Values2.1.xlsm")
  5.  
  6. Local $oIE = _IECreate("http://football.fantasysports.yahoo.com/f1/28910/setkeepercosts")
  7.  
  8. Local $o_Form = _IEGetObjByName($oIE, "setcosts")
  9. $o_cost = _IEFormElementGetObjByName($o_Form, "24823")
  10. _IEFormElementSetValue($o_cost, "222")
  11. _IEFormSubmit($o_Form)
  12.  
  13. $OTable=_IETableGetCollection($OIE,0)
  14. $OTableData = _IETableWriteToArray($oTable)

Complete newb here so bare with me... Im trying to create a script that will read an excel file and post to an appropriate box on the website. I have figured out how to post to the website. My issue is how do i figure out through autoit which is the appropriate box? When i check the coding of the web page the text boxes are just assigned random number for the id. i basically have to check the html coding of the element to the left of the box, see what the text in it being displayed is, match it to the correct cell in a column in excel then post the value of the column to the right into the text box on the website directly to the right of the element originally checked.... IS this even possible? here is what i have so far


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>