找回密码
 加入
搜索
查看: 1610|回复: 0

[AU3基础] SendKeyDelay在自己创建的GUI内嵌下有问题,求解答!

[复制链接]
发表于 2013-5-5 03:23:53 | 显示全部楼层 |阅读模式
一个是内嵌,一个是IE默认打开,貌似效果是不一样的,
#include <IE.au3>
Opt("SendKeyDelay", 250)
$oIE = _IECreate("http://www.ip138.com/", "url")
$hIE = _IEPropertyGet($oIE, "hwnd")
$ip = _IEGetObjById($oIE, 'ip')
_IEAction($ip, "focus")
ControlSend($hIE, "", '', '123456789', 1)
#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$oIE = _IECreateEmbedded()
$GUI_HANDLE = GUICreate("Embedded Web control Test", @DesktopWidth, 614, 0, 0)
GUICtrlCreateObj($oIE, 0, 0, @DesktopWidth, 614)
GUISetState()
Opt("SendKeyDelay", 250)
_IENavigate($oIE, 'http://www.ip138.com/', 1)
$ip = _IEGetObjById($oIE, 'ip')
_IEAction($ip, "focus")
ControlSend($GUI_HANDLE, "", '', '123456789', 1)
While 1
        $msg = GUIGetMsg()

        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-25 10:45 , Processed in 0.097722 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表