找回密码
 加入
搜索
查看: 1174|回复: 3

为什么send输出不正确那

[复制链接]
发表于 2009-1-27 19:21:41 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
dim $a
GUICreate("",400,400)
$a=GUICtrlCreateInput("",80,30,280,20)
GUISetState(@SW_SHOW)
Func copy()
        run("telnet")
        sleep(1000)
        send($a)
        EndFunc
while 1
        HotKeySet("{F6}","copy")
        $msg=GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        WEnd

[ 本帖最后由 bin0131 于 2009-1-29 21:33 编辑 ]
发表于 2009-1-27 20:00:32 | 显示全部楼层
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Dim $a
HotKeySet("{F6}", "copy")

GUICreate("", 400, 400)
$Input1 = GUICtrlCreateInput("", 80, 30, 280, 20)
GUISetState(@SW_SHOW)

While 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd

Func copy()
        Run("telnet")
        Sleep(1000)
        $a = GUICtrlRead($Input1)
        Send($a)
EndFunc   ;==>copy
 楼主| 发表于 2009-1-28 15:45:43 | 显示全部楼层
谢谢上面的,可以了
发表于 2009-1-28 22:09:31 | 显示全部楼层
概念很重要啊
我现在有的概念不清楚 很多都不会 哎
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 21:36 , Processed in 0.073534 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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