找回密码
 加入
搜索
查看: 1644|回复: 2

[AU3基础] 点击图片,进入网站,但是第一次点击的时候有效,第二次点击就失效了

[复制链接]
发表于 2011-9-5 09:52:01 | 显示全部楼层 |阅读模式
本帖最后由 大建子1 于 2011-9-5 09:53 编辑

我想做个各品牌笔记本驱动下载网页的集合脚本,但是现在写出来的脚本图片在第一次点击的时候可以进入网站,但是第二次点击就失效了,求帮助。
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include<IE.au3>
$Form1 = GUICreate("驱动下载链接", 637, 412, 361, 152)
$Pic1 = GUICtrlCreatePic(@TempDir&"\manu_160.jpg", 0, 0, 137, 65)

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Pic1
                         $Pic1=_IECreate("http://support1.lenovo.com.cn/lenovo/wsi/Modules/Drive.aspx?intcmp=I_F_Fast_Driver_1",1,1,0)
       EndSwitch
 WEnd
 楼主| 发表于 2011-9-5 09:58:04 | 显示全部楼层
额   没人回答...我继续看帮助去...
发表于 2011-9-5 12:02:38 | 显示全部楼层
试下这样子
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include<IE.au3>
$Form1 = GUICreate("驱动下载链接", 637, 412, 361, 152)
$Pic1 = GUICtrlCreatePic("manu_160.jpg", 0, 0, 137, 65)

GUISetState()
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Pic1
                       _IECreate("http://support1.lenovo.com.cn/lenovo/wsi/Modules/Drive.aspx?intcmp=I_F_Fast_Driver_1",0,1,0)
        
       EndSwitch
WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-2 23:36 , Processed in 0.074993 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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