找回密码
 加入
搜索
查看: 1443|回复: 2

和讯博客自动发表问题

[复制链接]
发表于 2009-10-25 23:04:20 | 显示全部楼层 |阅读模式
高手帮忙看看 为什么Textarea区域发送不了文本!!
#include<IE.au3>
$oIE = _IECreate('http://reg.hexun.com/login.aspx?TextBoxUserName=zsq20080505&TextBoxPassword=123456&LoginStateName=1&submitsign=1&hiddenReferrer=http%253a%252f%252fpost.blog.hexun.com%252fi%252farticleedit.aspx%253fBlogName%253d13020416&TextGpic=&gourl=http%3A%2F%2Fpost.blog.hexun.com%2Fi%2Farticleedit.aspx%3FBlogName%3D13020416')
$oForm = _IEFormGetObjByName ($oIE, "submitform")

$title = _IEFormElementGetObjByName ($oForm, "TitleTextbox")
_IEFormElementSetValue ($title,"测试标题!!!!!!!!!!!!!")

$oQuery1 = _IEFormElementGetObjByName ($oForm, "Neweditarticle2008_1:CategoryList")
_IEFormElementOptionSelect ($oQuery1,"新闻类",1,"bytext")

$oQuery = _IEFormElementGetObjByName($oForm, "ContentSpaw")
_IEFormElementSetValue($oQuery, "AutoIt IE.au3")

$tag= _IEGetObjByName ($oIE, "TagTextbox")
$tag.value = "tmp1,tmp2"

$oInputs = _IETagNameGetCollection ($oIE, "INPUT")
For $oInput In $oInputs
If $oInput.type = "button" Then
_IEAction($oInput,"click")
EndIf
Next
 楼主| 发表于 2009-10-26 09:11:28 | 显示全部楼层
顶一下顶一下
发表于 2009-10-26 12:54:45 | 显示全部楼层
原文中使用Editor.setContent 方法来设置ContentSpaw的值
此方法包涵在一个JS里面所以最好采用_IEBodyWriteHTML,或者使用post
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-26 14:09 , Processed in 0.268790 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表