标签:blog io 文件 div cti 代码 log on c
Firefox浏览器文件上传代码如下:
;upload file
Func _UploadFile($file)
AutoItSetOption("WinTitleMatchMode", 2)
WinWaitActive("","", 15);
If WinActivate("", "") Then
;MsgBox(64,"hello","have Window!!!")
ControlSetText("", "", "[CLASS:Edit; INSTANCE:1]", "D:\b.png")
ControlClick("", "","[CLASS:Button; TEXT:打开(&O)]")
Else
Return False
;MsgBox(64,"hello","No Window!!!")
EndIf
Exit
EndFunc
_UploadFile($CmdLine[$CmdLine[0]])
标签:blog io 文件 div cti 代码 log on c
原文地址:http://www.cnblogs.com/yangxia-test/p/3974800.html