airrs Posted August 6, 2012 Share Posted August 6, 2012 (edited) Hi, my script should open a page and fill in some text in a textarea. the page opens but i get this error all the time __FFSend: try{window.content.top.document.getElementsByName('comment6105272054')[0].value='testtesttest'}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFSetValue ==> No match: $sElement: .getElementsByName('comment6105272054')[0] __FFSend: try{window.content.top.document.forms[0].elements.length;}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFFormSubmit ==> No match: No Elements found in form: forms[0] here my source #include <FF.au3> If ProcessExists("firefox.exe") = 0 Then run("C:Program FilesMozilla Firefoxfirefox.exe") EndIf _FFConnect() _FFTabAdd("http://#############",true,true) _FFAction("max") _FFLoadWait() _FFSetValue("testtesttest","comment6105272054","name") _FFFormsubmit() here the source snippet of the textarea <div> <label class="required" for="comment6105272054">Eintrag: *</label> <br> <textarea id="comment6105272054" cols="80" style="width: 99%" rows="6" name="comment"><textarea> </div> and the url of the page, just in case http://############/ i hope someone can help me, because after 2 hours of searching through the web, i have no idea anymore greets airrs Edited August 6, 2012 by Melba23 url removed Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 6, 2012 Moderators Share Posted August 6, 2012 airrs,You appear to be trying to fill the "Comment" field on a web page. Why are you trying to automate this? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
airrs Posted August 6, 2012 Author Share Posted August 6, 2012 this is part of a bigger script (you already helped me on this one with the cpu issues) the basic idea of my script is to check if i have pressed CTRL+C, then a pop up window shows up with a selection of different pages. After the selection, the particular page opens in a new firefox tab, fill in the string i've copied before and click on search. the case with the commet field: usually i forget very much things i look up on the internet (videos, articles, websites...) and i just created this simple page with a webpage builder to have a place where i can store such things, to help myself not to forget so much Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 6, 2012 Moderators Share Posted August 6, 2012 airrs, I would add some security to that page if I were you - at the moment anyone can post there. I have removed the url before you get even more spam! Please buy a notebook instead. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
airrs Posted August 6, 2012 Author Share Posted August 6, 2012 (edited) i know. it's just for testuse. i add a password to access this commentbox later. and i have a notebook. but i cant copy paste in that so how can i solve my problem? Edited August 6, 2012 by airrs Link to comment Share on other sites More sharing options...
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