Jump to content

How do I auto fill in the Title and Description in this forum?


 Share

Recommended Posts

#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 you

Link to comment
Share on other sites

#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 you

The 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

#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?

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

PM 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

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...