Jump to content

_IETagNameAllGetCollection


Recommended Posts

well i used one of the example scripts and got a ton of tags using _IETagNameAllGetCollection...but what the heck can i do with them...i only ask because there is no related commands other than _IETagNameGetCollection...so what can i do with tags? (i need data within a tag) for example if i can get all info from tag td basically this whole codebox...

CODE
<td valign=top><u><b>Word or phrase:</b></u><br> _ _ _ _ _ _ _ _ (8 characters long)<p>Hint:<BR>complete<P>Correct Guesses:<br><p>Incorrect Guesses:<br><p><input type=submit name=guess value=a><input type=submit name=guess value=b><input type=submit name=guess value=c><input type=submit name=guess value=d><input type=submit name=guess value=e><input type=submit name=guess value=f><input type=submit name=guess value=g><input type=submit name=guess value=h><input type=submit name=guess value=i><input type=submit name=guess value=j><input type=submit name=guess value=k><input type=submit name=guess value=l><input type=submit name=guess value=m><input type=submit name=guess value=n><input type=submit name=guess value=o><input type=submit name=guess value=p><input type=submit name=guess value=q><input type=submit name=guess value=r><input type=submit name=guess value=s><input type=submit name=guess value=t><input type=submit name=guess value=u><input type=submit name=guess value=v><input type=submit name=guess value=w><input type=submit name=guess value=x><input type=submit name=guess value=y><input type=submit name=guess value=z></CENTER></form></TD>
Edited by nonplayablecharacter

You can always count on me for the dumb questions ;)My Scripts:Rikku

Link to comment
Share on other sites

One example would be _IEPropertyGet(), another _IEAction()

Dale

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

Link to comment
Share on other sites

well i used one of the example scripts and got a ton of tags using _IETagNameAllGetCollection...but what the heck can i do with them...i only ask because there is no related commands other than _IETagNameGetCollection...so what can i do with tags? (i need data within a tag) for example if i can get all info from tag td basically this whole codebox...

<td valign=top><u><b>Word or phrase:</b></u><br> _  _  _  _  _  _  _  _ (8 characters long)<p>Hint:<BR>complete<P>Correct Guesses:<br><p>Incorrect Guesses:<br><p><input type=submit name=guess value=a><input type=submit name=guess value=b><input type=submit name=guess value=c><input type=submit name=guess value=d><input type=submit name=guess value=e><input type=submit name=guess value=f><input type=submit name=guess value=g><input type=submit name=guess value=h><input type=submit name=guess value=i><input type=submit name=guess value=j><input type=submit name=guess value=k><input type=submit name=guess value=l><input type=submit name=guess value=m><input type=submit name=guess value=n><input type=submit name=guess value=o><input type=submit name=guess value=p><input type=submit name=guess value=q><input type=submit name=guess value=r><input type=submit name=guess value=s><input type=submit name=guess value=t><input type=submit name=guess value=u><input type=submit name=guess value=v><input type=submit name=guess value=w><input type=submit name=guess value=x><input type=submit name=guess value=y><input type=submit name=guess value=z></CENTER></form></TD>
You should ask a more specific question. But for sake of general description, look at your example. You have many input tags with the same name and the id's are not given. So how would you find a single input to change it's value? Get the collection of input tags, loop through looking for the current value, then change it:
$colInputs = _IETagNameGetCollection($oForm, "input")
For $oInput In $colInputs
      If (String($oInput.name) = "guess") And (String($oInput.value) = "c") Then
            _IEFormElementSetValue($oInput, "New Value", 1)
            ExitLoop
      EndIf
Next

Of course this is only one example of what might be done.

:)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...