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

求教 高手帮我看下 我那里些错了

[复制链接]
发表于 2008-6-14 14:00:04 | 显示全部楼层 |阅读模式
运行的时候提示











#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("快捷方式", 445, 322, 219, 164)
GUICtrlCreateCombo("", 90, 96, 113, 25)
$1 = GUICtrlSetData(-1, "10分钟后关机")
$2 = GUICtrlSetData(-1, "20分钟后关机")
$3 = GUICtrlSetData(-1, "30分钟后关机")
$queding = GUICtrlCreateButton("确定", 80, 192, 73, 25, 0)
$quxiao = GUICtrlCreateButton("取消", 280, 192, 73, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Select
     Case $nMsg = $GUI_EVENT_CLOSE
       Exit

Case $nMsg = $1
     $Choose = 1
Case $nMsg = $2
     $Choose = 2
Case $nMsg = $3
     $Choose = 3
Case $nMsg = $quxiao
exit
Case $nMsg = $queding
If $Choose == "" Then
EndIf


                        If $Choose = 1 Then
                        msgbox (1,"","10分钟后关机")
                        exit
                         EndIf
                        If $Choose = 2 Then
                        msgbox (1,"","20分钟后关机")
                        EndIf
                        If $Choose = 3 Then
                        msgbox (1,"","30分钟后关机")
                        EndIf
EndSelect
WEnd

[ 本帖最后由 生世缘 于 2008-6-14 18:51 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2008-6-14 15:14:42 | 显示全部楼层
谁帮帮菜鸟哦
发表于 2008-6-14 15:57:22 | 显示全部楼层
#include <GUIConstantsEx.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("快捷方式", 445, 322, 219, 164)
$combo=GUICtrlCreateCombo("", 90, 96, 113, 25)
$1 = GUICtrlSetData(-1, "10分钟后关机")
$2 = GUICtrlSetData(-1, "20分钟后关机")
$3 = GUICtrlSetData(-1, "30分钟后关机")
$queding = GUICtrlCreateButton("确定", 80, 192, 73, 25, 0)
$quxiao = GUICtrlCreateButton("取消", 280, 192, 73, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        switch GUIGetMsg()
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $queding
                        if "10分钟后关机" = GUICtrlRead($combo) then
                                msgbox (1,"","10分钟后关机")
                                exit
                        elseif "20分钟后关机"= GUICtrlRead($combo) then
                                msgbox (1,"","20分钟后关机")
                                exit
                        elseif "30分钟后关机"= GUICtrlRead($combo) then
                                msgbox (1,"","30分钟后关机")
                                exit
                        else
                                continueloop
                        endif
                case $quxiao
                        Exit
        endswitch
wend

评分

参与人数 1金钱 +2 收起 理由
生世缘 + 2

查看全部评分

 楼主| 发表于 2008-6-14 16:09:14 | 显示全部楼层
谢谢大哥了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-20 06:43 , Processed in 0.081564 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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