homemade Posted November 17, 2008 Posted November 17, 2008 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.
Xand3r Posted November 17, 2008 Posted November 17, 2008 (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 November 17, 2008 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
homemade Posted November 17, 2008 Author Posted November 17, 2008 java script:void(document.forms['post'].subject.value='blah'); gives me a ERROR: syntax error (illegal character)
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