boshi Posted August 18, 2010 Share Posted August 18, 2010 Hello all, I am working on a simple script that can run through array of facebook page url and what it does is, it will post a comment to the latest post on the wall of the page. My problem is, I do not know how the Submit button in Facebook can be click, because it will only appear when the mouse click on the text area to enter the comment. I am using embedded IE and I want the window to always minimize if its running. Please help me anyone. Really appreciate your help Do If Not _FileReadToArray($urlSrc,$urlArray) Then MsgBox(4096,"Error", " File url.txt not found in your script directory") EndIf For $x = 1 to $urlArray[0] _IENavigate( $IE, $urlArray[$x] ) ;Msgbox(0,'Record:' & $x, $urlArray[$x]) $oForm = _IEFormGetObjByName ($IE, "add_comment") $oQuery = _IEFormElementGetObjByName ($oForm, "add_comment_text") $oSubmit = _IEFormElementGetObjByName ($oQuery, "comment") ;If Not _FileReadToArray($msgSrc,$msgArray) Then ;MsgBox(4096,"Error", " File msg.txt not found in your script directory") ;EndIf _IEFormElementSetValue ($oQuery, "this is the comment need to post") _IEAction ($oQuery, "visible") _IEAction ($oSubmit, "visible") _IEAction ($oForm, "visible") Sleep(10000) _IEAction ($oForm, "click") Next $i = $i + 1 Until $i = GUICtrlRead($Loop) Link to comment Share on other sites More sharing options...
Kotsos Posted February 20, 2012 Share Posted February 20, 2012 i know i am reviving a very old post , but i am wondering if $oForm = _IEFormGetObjByName ($IE, "add_comment") $oQuery = _IEFormElementGetObjByName ($oForm, "add_comment_text") i am pretty sure the add_comment_text part still works from a little scouting that i ve done in the code window of facebook page, but i cant get the obj name... anyone trying anything similar? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 20, 2012 Moderators Share Posted February 20, 2012 Kolsos,Welcome to the AutoIt forum. The Forum Rules have changed since this thread was started - we no longer permit discussion of log-in methods and forum auto-posters, so I am locking this thread.See you back soon with a legitimate question I hope. 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...
Recommended Posts