找回密码
 加入
搜索
楼主: hynq2000

[原创] 用au3编写网管维护工具(图文教程)

 火... [复制链接]
发表于 2010-12-13 23:06:37 | 显示全部楼层
这个好好的学,能让自己惊喜的
发表于 2010-12-20 21:55:36 | 显示全部楼层
感谢楼主,学习下
发表于 2010-12-26 10:51:59 | 显示全部楼层
谢谢分享,对于我们新人来说,这个很实用
发表于 2011-3-28 15:29:00 | 显示全部楼层
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("快捷键", 216, 182, -1, -1)
$Button1 = GUICtrlCreateButton(".exe", 8, 8, 193, 49)
$Button2 = GUICtrlCreateButton(".cpl", 8, 64, 193, 49)
$Button3 = GUICtrlCreateButton(".msc", 8, 120, 193, 49)
GUISetState(@SW_SHOW)
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        Run("cmd.exe");system32目录下的EXE文件可以直接调用
                       
                Case $Button2
                        Run("control desk.cpl");control(control.exe)是控制面版。 desk.cpl是调用control.exe里面的参数,也就是显示桌面属性。
                       
                Case $Button3
                        ShellExecute("gpedit.msc","组策略","","open","$SW_HIDE") ;这一句可以查看sehllExecute说明

        EndSwitch
WEnd
发表于 2011-3-28 15:30:16 | 显示全部楼层
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("快捷键", 216, 182, -1, -1)
$Button1 = GUICtrlCreateButton("打开.exe文件", 8, 8, 193, 49)
$Button2 = GUICtrlCreateButton("打开.cpl文件", 8, 64, 193, 49)
$Button3 = GUICtrlCreateButton("打开.msc文件", 8, 120, 193, 49)
GUISetState(@SW_SHOW)
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        Run("cmd.exe");system32目录下的EXE文件可以直接调用
                        
                Case $Button2
                        Run("control desk.cpl");control(control.exe)是控制面版。 desk.cpl是调用control.exe里面的参数,也就是显示桌面属性。
                        
                Case $Button3
                        ShellExecute("gpedit.msc","组策略","","open","$SW_HIDE") ;这一句可以查看sehllExecute说明

        EndSwitch
WEnd
发表于 2011-4-11 19:22:23 | 显示全部楼层
新手学习学习
发表于 2011-4-11 22:26:10 | 显示全部楼层
真的有点搞不懂,谢谢分享
发表于 2011-4-17 14:33:32 | 显示全部楼层
顶上去啊 。。冲
发表于 2011-4-18 10:31:17 | 显示全部楼层
仔细学习下  真不错
发表于 2011-7-6 11:41:03 | 显示全部楼层
回复 1# hynq2000


    学习了
发表于 2011-9-14 18:47:57 | 显示全部楼层
终于让我找到了,就是这个....
发表于 2011-9-14 18:48:33 | 显示全部楼层
真是雪中送碳啊
发表于 2011-9-14 18:50:47 | 显示全部楼层
全部收藏了,有楼主这个教程,学GUI就可以借鉴了,非常感谢
发表于 2011-10-9 22:28:40 | 显示全部楼层
学习了!谢谢!
发表于 2011-10-24 14:01:00 | 显示全部楼层
学习了 谢谢楼主
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-28 05:23 , Processed in 0.079255 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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