找回密码
 加入
搜索
查看: 1576|回复: 1

[GUI管理] 《已解决》GUI 按钮实效,大神帮看下

[复制链接]
发表于 2015-9-25 09:53:44 | 显示全部楼层 |阅读模式
本帖最后由 哈喽IT 于 2015-9-28 10:27 编辑

#include <GUIConstantsEx.au3>
#include <IE.au3>
GUICreate("XXX安装 ",400,200)
GUICtrlCreatePic("E:\123.jpg",0,0,400,200,0x08000000)
$X1=GUICtrlCreateButton("X1安装 ",10,50,100,100,0x0080) ;
GUICtrlSetBkColor(-1, 0x00ff00)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlSetFont(-1, 20, 100, 0,"")
$exit=GUICtrlCreateButton("Exit",300,50,100,100,0x0080) ;退出按钮
GUICtrlSetBkColor(-1, 0x00ff00)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlSetFont(-1, 20, 100, 0,"")
$IE=GUICtrlCreateButton("IE",150,50,100,100,0x0080) ;IE安装
GUICtrlSetBkColor(-1, 0x00ff00)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlSetFont(-1, 20, 100, 0,"")
GUISetState(@SW_SHOW)
While 1
   $Msg=GUIGetMsg()
   Select
        Case $msg=$X1
        FileCopy("\\170.0.1.0\My$\123\xx.TTF","C:\WINDOWS\Fonts",1)
        MsgBox(0,"xx "," ",2)
   Case $msg=$IE
  $oIE = _IECreate("http://xxxxxxx:xx")
     _IELinkClickByText ($oIE, " ")
                 ;问题出现在这个按钮上, 我打开网页以后点击网页上的一个安装按钮,安装完成一个控件以后,弹出一个登陆窗口,然后这个语句就不会结束了,导致GUI上的其他按钮实效,帮看下这个结束语句要怎么写啊啊
        Case $msg=$exit
                     ExitLoop
        Case $msg = $GUI_EVENT_CLOSE
                      ExitLoop
        EndSelect
WEnd
发表于 2015-9-25 18:49:25 | 显示全部楼层
Case $msg=$IE

把要执行的代码,编译成独立的EXE吧。
  
$oIE = _IECreate("http://xxxxxxx:xx")
     _IELinkClickByText ($oIE, " ")
打开IE,要时间等的,但GUI其它控件可没时间等啊。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 12:14 , Processed in 0.075066 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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