saldous Posted March 4, 2007 Posted March 4, 2007 (edited) I'm trying to get a list of all the element names of the input fields in a web page form so that I can use those elements to insert text into the web page. I'm trying the following (which came from the help file): $oProfile = _IEFormGetCollection ($oIE, 0) For $oInput In $oProfile MsgBox(0, "Form Input Type", "Form: " & $oInput.form.name & " Type: " & $oInput.type) Next oÝ÷ ØÞjX¬xÞyÛhr§ëa{Mú éºÖíÊ¿n«µ»#ozÇÈ^vØ^éi~)^jwHq©÷ö×âÖ§ÊØb Þ«bhÂMÄÉÞ½êæwp«h¶«¢b¢{-êÞj·j{(ê'z^jÇ¡zZfxÈr§è¶aÌ!ÈpjÆ ¹ë,¶!jxªê-·*^ªê-¶®¢ÙÚꮢ֮¶sbb33c¶õ&öfÆRÒôTf÷&ÔvWD6öÆÆV7Föâb33c¶ôR¤f÷"b33c¶ôçWBâb33c¶õ&öfÆP¢×6t&÷ÂgV÷C´f÷&ÒçWBGRgV÷C²ÂgV÷C´f÷&Ó¢gV÷C²fײb33c¶ôçWBæf÷&ÒææÖRfײgV÷C²GS¢gV÷C²fײb33c¶ôçWBææÖR¤æW@ I get a load of names back, but I'm not sure how to use those names in an IEFormElementSetValue Thank you. Edited March 4, 2007 by saldous
DaleHohm Posted March 4, 2007 Posted March 4, 2007 I'm trying to get a list of all the element names of the input fields in a web page form so that I can use those elements to insert text into the web page. I'm trying the following (which came from the help file): $oProfile = _IEFormGetCollection ($oIE, 0) For $oInput In $oProfile MsgBox(0, "Form Input Type", "Form: " & $oInput.form.name & " Type: " & $oInput.type) Next oÝ÷ ØÞjX¬xÞyÛhr§ëa{Mú éºÖíÊ¿n«µ»#ozÇÈ^vØ^éi~)^jwHq©÷ö×âÖ§ÊØb Þ«bhÂMÄÉÞ½êæwp«h¶«¢b¢{-êÞj·j{(ê'z^jÇ¡zZfy8ZL¨»ú®¢×*Ê"¶Z(Éb쨺»§uê쵩Ýx}©e¡ûaȬi¸éçH¶Z(Ébì!jܨº·°j{b°¢¹éÑ´*%ç-آ赫" ^~æçÞéÜ{^*.¥«,jx§uìoj[¶æëB¢Y^rب«2¢èZ½çhëaȬÂʰj{Séò¢éÞyÛhæ¥7«mçè®g(֢ƢY^rبߢ¹éÛ-«Zì!jܨº·°j{m¢IèÁ¦èºÔÚæ¥¢¶Ø^~eÂ)àr^jwlyèØ^ºÚ"µÍÌÍÛÔÙ[HHÒQQÜQÙ]ÛÛXÝ[Û ÌÍÛÒQK BÌÍÛÑ[[Y[ÈHÒQQÜQ[[Y[Ù]ÛÛXÝ[Û ÌÍÛÔÙ[JBÌÍÚHHÜ ÌÍÛÑ[[Y[[ ÌÍÛÑ[[Y[ÂÙÐÞ ][ÝÑÜH[]I][ÝË ][ÝÑÜN ][ÝÈ [È ÌÍÛÑ[[Y[ÜK[YH [È ][ÝÈ[[Y[N ][ÝÈ [È ÌÍÛÑ[[Y[H [È ][ÝÈ[[Y[[YN ][ÝÈ [È ÌÍÛÑ[[Y[[YH [È ][ÝÈ[[Y[[^ ][ÝÈ [È ÌÍÚJHÈ[[Y[[^Ø[HÙY[ÒQQÜQ[[Y[Ù]ÛÛXÝ[Û ÌÍÚH ÏHB^ Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
saldous Posted March 4, 2007 Author Posted March 4, 2007 Ah ha, I see, Doh! I get it now, thank you for your quick help DaleHohm, much appreciated. I got it working now :-)
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