大建子1 发表于 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

大建子1 发表于 2011-9-5 09:58:04

额   没人回答...我继续看帮助去...

learn321 发表于 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
页: [1]
查看完整版本: 点击图片,进入网站,但是第一次点击的时候有效,第二次点击就失效了