是否有人有autoIt的示例代码?AutoIt在Firefox中填写表格 - 读取和写入CSV
我想从iMacros更改为autoIt,我需要一个示例代码如何从CSV文件读取,在Firefox中填写表格并将解决方案写入CSV。
是否有人有autoIt的示例代码?AutoIt在Firefox中填写表格 - 读取和写入CSV
我想从iMacros更改为autoIt,我需要一个示例代码如何从CSV文件读取,在Firefox中填写表格并将解决方案写入CSV。
用于读取文件,你可以使用FileRead(...)
,对分裂的数据,可以使用StringSplit(...)
:
$CVSFile = FileRead("ThisIsMyCVSFile.txt")
If @error Then MsgBox(0, "", @error)
$splitCVS = StringSplit($CVSFile, ",", 1)
MsgBox(0, "", $splitCVS[1]) // make a For-loop from 0 to splitcvs[0]
而且,我不知道你要填写在Firefox的东西,但在这里是一个例子:
$id = ""
ControlSend("Mozilla Firefox Start Page - Mozilla Firefox", "", $id, "This is what I want to send")
替换为“形式”的ID $id
变量要写入。