Firefox中的AutoIt填充表单 - 读取和写入CSV

时间:2014-05-23 13:14:10

标签: csv autoit

有没有人有autoIt的示例代码?

我想从iMacros更改为autoIt,我需要一个示例代码,说明如何从CSV文件中读取,在Firefox中填写表单并将解决方案写入CSV。

2 个答案:

答案 0 :(得分:2)

您需要的是:

  1. CSV UDF
  2. Firefox UDF
  3. 您可以在这些链接上找到UDF和示例。

答案 1 :(得分:1)

要阅读文件,您可以使用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你想写信。

相关问题