tradertt Posted December 3, 2007 Share Posted December 3, 2007 #include <IE.au3> $oIE = _IECreate ("http://bbs.bbsmo.com/post.php?action=newthread&fid=5&extra=page%3D1") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "subject") _IEFormElementSetValue ($oQuery, "test") _IEFormSubmit ($oForm)http://bbs.bbsmo.com/post.php?action=newth...;extra=page%3D1login: fdx9b3336livzagPassword: 123456Guys, please help. I need to fill in the Type ID, Subject and Description automatically. However, cannot seem to find the form name and I dunno how to go about doing the coding.Just picked up Google search script but not too sure how to use it.Can anyone assist to see if they can help me make a script that can auto post a Type ID, Title and Description into the forum?Thank you Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Bert Posted December 3, 2007 Share Posted December 3, 2007 look at the other exampled in the IE section of the help file. If I remember right, it does just what you ask for in one of the examples The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
tradertt Posted December 3, 2007 Author Share Posted December 3, 2007 Sorry but my programming skills sucks. Could anyone kindly help me see if they can draft out this script? Thank you Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
GEOSoft Posted December 3, 2007 Share Posted December 3, 2007 #include <IE.au3> $oIE = _IECreate ("http://bbs.bbsmo.com/post.php?action=newthread&fid=5&extra=page%3D1") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "subject") _IEFormElementSetValue ($oQuery, "test") _IEFormSubmit ($oForm) http://bbs.bbsmo.com/post.php?action=newth...;extra=page%3D1 login: fdx9b3336livzag Password: 123456 Guys, please help. I need to fill in the Type ID, Subject and Description automatically. However, cannot seem to find the form name and I dunno how to go about doing the coding. Just picked up Google search script but not too sure how to use it. Can anyone assist to see if they can help me make a script that can auto post a Type ID, Title and Description into the forum? Thank youThe first thing to do is open that page, right=click on the content and choose View Source. The form name is clearly visible as are the names of every control used on the form. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
tradertt Posted December 3, 2007 Author Share Posted December 3, 2007 #include <IE.au3> $oIE = _IECreate ("http://bbs.bbsmo.com/post.php?action=newthread&fid=5&extra=page%3D1" ,1) ; Hide the browser window to demonstrate sending text to invisible window ;_IEAction($oIE, "invisible") $oForm = _IEFormGetObjByName($oIE, "postform") $oText = _IEFormElementGetObjByName ($oForm, "subject") _IEFormElementSetValue ($oText, "Hey! This works!") $oForm1 = _IEFormGetObjByName($oIE, "postform") $oText1 = _IEFormElementGetObjByName ($oForm1, "message") _IEFormElementSetValue ($oText1, "Testing Description") $oForm2 = _IEFormGetObjByName($oIE, "postform") $oText2 = _IEFormElementGetObjByName ($oForm2, "typeid") _IEFormElementSetValue ($oText1, "1") Hi I have tried this but there seems to be 2 problems. Unable to set the TypeID ? It does not select for small box to the left of the title of the post Another problem is that it cannot select the DISCUZ! tab for me to past my message inside. Can you help on this? Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Generator Posted December 3, 2007 Share Posted December 3, 2007 Try $oObj_IEGetObjById($oIE,"bbcodemode") _IEAction($oObj,"click") Link to comment Share on other sites More sharing options...
tradertt Posted December 3, 2007 Author Share Posted December 3, 2007 Do you know how to set the TypeID field too? THank you Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Generator Posted December 3, 2007 Share Posted December 3, 2007 Do you know how to set the TypeID field too? THank you Combined Everything. By the way I didn't have time to help you to complete the whole project, anyways I can provide small helps here. #include<IE.au3> _IEErrorHandlerRegister() _IELoadWaitTimeout(5000) $oIE=_IECreate("http://bbs.bbsmo.com/post.php?action=newthread&fid=5&extra=page%3D1") _IELoadWait($oIE,5000) $oSubject=_IEGetObjById($oIE,"subject") _IEFormElementSetValue($oSubject,"酒店偸拍") $oOptions=_IEGetObjById($oIE,"typeid") _IEFormElementOptionselect($oOptions,"本地",1,"byText") $oObj=_IEGetObjById($oIE,"bbcodemode") _IEAction($oObj,"click") Link to comment Share on other sites More sharing options...
tradertt Posted December 3, 2007 Author Share Posted December 3, 2007 thank you very much for your help. could i just check with you. would you be able to spare a few hours of your time doing a paid project? as i have really no knowledge on scripting. i have a budget that i can spend if you can kindly me create what i need. please do consider. thank you Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Generator Posted December 3, 2007 Share Posted December 3, 2007 thank you very much for your help. could i just check with you. would you be able to spare a few hours of your time doing a paid project? as i have really no knowledge on scripting. i have a budget that i can spend if you can kindly me create what i need. please do consider. thank youPM me what you need, if you really want to pay, please donate to AutoIt, you can find many links through homepage. Link to comment Share on other sites More sharing options...
Confuzzled Posted December 15, 2007 Share Posted December 15, 2007 We're progressing on the forum spammer software are we? (http://www.autoitscript.com/forum/index.php?showtopic=58198) 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