Sign in to follow this  
Followers 0
homemade

Filling in a javascript text field

3 posts in this topic

I'm trying to paste what's in my clipboard into the subject line of a new forum post.

This is what I have so far(from searching around)

$oIE = _IECreate ("http://www.edgeofnowhere.cc/posting.php?mode=newtopic&f=83")
$oTags = $oIE.document.getElementsByTagName('input')
For $oTag in $oTags
    If $oTag.className = 'subject' Then
        $Text = _IEPropertyGet($oTag,'innertext')
        ExitLoop
    EndIf
Next

I think assigning the field in javascript involves .value but I'm not familiar with javascript.

I'm stuck because I can't quite figure out how to assign a value to the field.

I tried googling some javascript examples but I don't know enough to incorporate it into autoit.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'm trying to paste what's in my clipboard into the subject line of a new forum post.

This is what I have so far(from searching around)

$oIE = _IECreate ("http://www.edgeofnowhere.cc/posting.php?mode=newtopic&f=83")
$oTags = $oIE.document.getElementsByTagName('input')
For $oTag in $oTags
    If $oTag.className = 'subject' Then
        $Text = _IEPropertyGet($oTag,'innertext')
        ExitLoop
    EndIf
Next

I think assigning the field in javascript involves .value but I'm not familiar with javascript.

I'm stuck because I can't quite figure out how to assign a value to the field.

I tried googling some javascript examples but I don't know enough to incorporate it into autoit.

try document.forms['formname'].inputname.value='your value'

example: go to search on this forum and put this in the address bar of the browser:P

java script:void(document.forms['sForm'].keywords.value='this is something to search on the autoit forum');

p.s javascript without a space... the forum is putting a space there when i post xD

Edited by TheMadman

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites

java script:void(document.forms['post'].subject.value='blah');

gives me a ERROR: syntax error (illegal character)

Share this post


Link to post
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
Sign in to follow this  
Followers 0