用IE手动打开上传页面,然后把要上传的文件设置好,再按‘F7’,就可按已经填入的文件名自动填表,分类全为视频!
#include <ie.au3>
HotKeySet('{F7}', 'INPUTTHEVALUE')
Do
Sleep(90)
Until 0
Func INPUTTHEVALUE()
$oIE = _IEAttach('最大1GB(1000MB),最长300分钟', 'Text', 1)
$oFORM = _IEFormGetObjByName($oIE, 'upload')
$oINPUT = _IEFormElementGetObjByName($oFORM, 'userfile')
$Name = _IEFormElementGetValue($oINPUT)
$Name = StringRegExp($Name, '[^\\]+$', 1, 1)
$oINPUT = _IEFormElementGetObjByName($oFORM, 'title')
_IEFormElementSetValue($oINPUT, $Name[0], 1)
$oINPUT = _IEFormElementGetObjByName($oFORM, 'memo')
_IEFormElementSetValue($oINPUT, $Name[0], 1)
$oINPUT = _IEFormElementGetObjByName($oFORM, 'tags_0')
_IEFormElementSetValue($oINPUT, $Name[0], 1)
_IEFormElementRadioSelect($oFORM, 2, 'cid[]', 1, "byValue", 1)
EndFunc
[ 本帖最后由 liongodmien 于 2008-10-29 23:19 编辑 ] |