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

为什么无法激活Telnet窗口

[复制链接]
发表于 2009-2-1 13:31:37 | 显示全部楼层 |阅读模式
#include <GUIConstants.au3>
HotKeySet("{F2}","copy")
guicreate("我的程序",400,400)
$a=GUICtrlCreateInput("",100,60,200,20)
$b=GUICtrlCreateButton("telnet",320,60,60,20)
GUISetState(@SW_SHOW)
Func copy()
        $s = WinGetTitle("Telnet", "")
        WinActive($s)
        EndFunc
while 1
        $msg=guigetmsg()
        Select
                case $msg = $GUI_EVENT_CLOSE
                        ExitLoop
                case $msg=$b
                        run("telnet " & GUICtrlRead($a))
        EndSelect
        WEnd

[ 本帖最后由 bin0131 于 2009-2-3 21:23 编辑 ]
发表于 2009-2-1 14:31:11 | 显示全部楼层
可以激活~~~~~~~
发表于 2009-2-1 16:33:29 | 显示全部楼层
激活窗口的命令不是WinActive;是WinActivate

[ 本帖最后由 cnsnc 于 2009-2-1 17:10 编辑 ]
 楼主| 发表于 2009-2-1 19:35:52 | 显示全部楼层
试过了都不行那
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-19 19:49 , Processed in 0.074252 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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