ttl 发表于 2010-11-2 21:13:42

谷歌快讯无法定位输入框问题

本帖最后由 ttl 于 2010-11-2 21:25 编辑

大家好,我不知道哪写错了,总是识别不到input输入框,大家帮帮忙吧

#include <IE.au3>
$file = FileOpen("d:\1.txt", 0)

If $file = -1 Then
    MsgBox(0, "错误", "不能打开文件.")
    Exit
EndIf

    $oIE=_IEAttach("Google")
    $oInputs =_IEFormElementGetObjByName($oIE,"q")
While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    ClipPut($line)
        WinActivate("Google")
ControlFocus("Google", "", "focus_elt")
        ClipGet()
        Wend
FileClose($file)

蜘蛛抱蛋 发表于 2010-11-3 11:51:54

$oInputs =_IEFormElementGetObjByName($oIE,"q")
这个对象必须是Form类

ttl 发表于 2010-11-3 17:07:51

回复 2# 蜘蛛抱蛋


    谢谢。
页: [1]
查看完整版本: 谷歌快讯无法定位输入框问题