Hyperlink 一封一封的写信给网页

Hyperlink 一封一封的写信给网页,hyperlink,autoit,Hyperlink,Autoit,所以我正忙于AutoIt,我现在正在使用这个代码 _IEPropertySet($passwordnew, "innertext", "12345678910") 这会将文本“12345678910”粘贴到网页的文本框中,是否可以让它逐个字母地键入?并不是说它粘贴了整个概念。我已经试过好几种方法,但结果都是错误的。为什么?您可以尝试以下方法: Global $passwordnew = StringSplit(12345678910, '', 2) Global $valueOfPasswo

所以我正忙于AutoIt,我现在正在使用这个代码

 _IEPropertySet($passwordnew, "innertext", "12345678910")

这会将文本“12345678910”粘贴到网页的文本框中,是否可以让它逐个字母地键入?并不是说它粘贴了整个概念。我已经试过好几种方法,但结果都是错误的。

为什么?您可以尝试以下方法:

Global $passwordnew = StringSplit(12345678910, '', 2)
Global $valueOfPasswortField = ''

For $i = 0 To UBound($passwordnew) - 1
;~  $valueOfPasswortField &= $passwordnew[$i]
;~  ConsoleWrite($valueOfPasswortField & @CRLF)
    _IEPropertySet($passwordnew, "innertext", _IEPropertyGet($passwordnew, "innertext") & $passwordnew[$i])
Sleep(400)
Next

在我看来,您需要启动OnKeyUp事件

$password = "1234567890"
_IEPropertySet($passwordnew, "innertext", "12345678910")
BlockInput(1)
_IEAction($passwordnew, "focus")
Send($password, 1)
BlockInput(0)

_IEPropertySet($passwordnew, "innertext", "12345678910")
$passwordnew.fireEvent("onkeyup")