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

[AU3基础] [已解决]AU3程序时而能启动时而不能启动是什么原因呢?

[复制链接]
发表于 2010-10-22 10:35:09 | 显示全部楼层 |阅读模式
本帖最后由 smooth 于 2010-11-9 20:55 编辑

请问各位老师,AU3程序时而能启动时而不能启动是什么原因呢?也就是说,几秒钟前不能启动,几秒钟之后双击又能启动。如此反复,这是什么原因造成的呢?好纳闷。
发表于 2010-10-22 11:53:26 | 显示全部楼层
把源代码贴上来看看再说吧
发表于 2010-10-22 12:00:27 | 显示全部楼层
没有源码,神也救不了你
 楼主| 发表于 2010-10-22 12:30:27 | 显示全部楼层
本帖最后由 smooth 于 2010-10-22 12:31 编辑

#Region AutoIt3Wrapper 预编译参数(常用参数)
#AutoIt3Wrapper_Icon=                                                                                 ;图标,支持EXE,DLL,ICO
#AutoIt3Wrapper_OutFile=                                                                        ;输出文件名
#AutoIt3Wrapper_OutFile_Type=exe                                                        ;文件类型
#AutoIt3Wrapper_Compression=4                                                                ;压缩等级
#AutoIt3Wrapper_UseUpx=y                                                                         ;使用压缩
#AutoIt3Wrapper_Res_Comment=                                                                 ;注释
#AutoIt3Wrapper_Res_Description=                                                        ;详细信息
#AutoIt3Wrapper_Res_Fileversion=                                                        ;文件版本
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=p                                ;自动更新版本  
#AutoIt3Wrapper_Res_LegalCopyright=                                                 ;版权
#AutoIt3Wrapper_Change2CUI=N                                                   ;修改输出的程序为CUI(控制台程序)
;#AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer%                ;自定义资源段
;#AutoIt3Wrapper_Run_Tidy=                                                   ;脚本整理
;#AutoIt3Wrapper_Run_Obfuscator=                                                      ;代码迷惑
;#AutoIt3Wrapper_Run_AU3Check=                                                                 ;语法检查
;#AutoIt3Wrapper_Run_Before=                                                                 ;运行前
;#AutoIt3Wrapper_Run_After=                                                                        ;运行后
#EndRegion AutoIt3Wrapper 预编译参数设置完成
#cs ____________________________________

Au3 版本:3.3.6.1
脚本作者: 鼎盛中国
        Email: smooth188@163.com
        QQ/TM: 93737785
脚本版本: v1.0.0.1
脚本功能:XP系统垃圾文件清理

#ce _______________脚本开始_________________
;
;不允许重复运行程序
Global $Title = "Clean";设置窗口显示的标题
If WinExists($Title) Then Exit
AutoItWinSetTitle($Title)
;
$shell = ObjCreate("Shell.Application");删除IE Cookie
$shell.NameSpace(32).Items().InvokeVerbEx("delete");删除IE临时文件

;设置删除Cookie时自动应答
While 1
        GUIGetMsg()
WEnd
Func Timer($hWnd, $uiMsg, $idEvent, $dwTime)
        If $idEvent = $TimerDLL[0] Then
                If WinExists("警告") Then
                        WinSetState("警告", "", @SW_DISABLE)
                        Send("!Y")
                        Exit
                EndIf
        ElseIf $idEvent = $Timer2DLL[0] Then
                $shell = ObjCreate("Shell.Application")
                $shell.NameSpace(32).Items().InvokeVerbEx("delete")
                Exit
        EndIf
EndFunc   ;==>Timer
;
RunWait(@ComSpec & ' /c del /s /q /f /a "%Userprofile%\cookies"', '', 0)
RunWait(@ComSpec & ' /c del /s /q /f /a "%Userprofile%\Recent"', '', 0)
RunWait(@ComSpec & ' /c rd /s /q "%Userprofile%\Local Settings\Temp"', '', 0)
RunWait(@ComSpec & ' /c md "%Userprofile%\Local Settings\Temp"', '', 0)
RunWait(@ComSpec & " /c rd /s /q %SystemRoot%\temp", '', 0)
RunWait(@ComSpec & " /c md %SystemRoot%\temp", '', 0)
RunWait(@ComSpec & " /c rd /s /q %SystemRoot%\SoftwareDistribution\Download", '', 0)
RunWait(@ComSpec & " /c md %SystemRoot%\SoftwareDistribution\Download", '', 0)
RunWait(@ComSpec & " /c del /s /q /f /a %SystemRoot%\system32\dllcache", '', 0)
RunWait(@ComSpec & ' /c for /f %%a in ("dir /ad /b "%systemroot%\$*$"") do rd /s /q "%systemroot%\%%a"', '', 0)
;
;清除暴风影音播放列表
RunWait(@ComSpec & " /c taskkill /f /im Storm.exe", '', 0)
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\playlist.smpl", '', 0)
;
;清除QQ播放器播放列表
;RunWait(@ComSpec & " /c %SystemDrive%", '', 0)
;RunWait(@ComSpec & " /c cd \", '', 0)
;RunWait(@ComSpec & " /c del /s /q /f /a default.qpl", '', 0)
RunWait(@ComSpec & " /c taskkill /f /im QQPlayer.exe", '', 0)
RunWait(@ComSpec & ' /c del "%appdata%"\Tencent\QQPlayer\default.qpl', '', 0)
;
;清除迅雷历史下载记录
;迅雷4
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\history.dat", '', 0)
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\history.dat.bak", '', 0)
;迅雷5
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\history6.dat", '', 0)
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\history6.dat.rescue", '',0)
;迅雷5.9
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do del /s /q /f /a %%a:\ThunderStorage.dat", '', 0)
;删除回收站
RunWait(@ComSpec & " /c for %%a in (c d e f g h i j k) do rmdir /s /q %%a:\recycler >nul 2>nul & mkdir %%a:\recycler >nul 2>nul & rd /s /q %%a:\recycler", '', 0)
;
;删除一些垃圾文件
RunWait(@ComSpec & " /c del /f /s /q %systemdrive%\*.tmp", '', 0)
RunWait(@ComSpec & " /c del /f /s /q %systemdrive%\*._mp", '', 0)
RunWait(@ComSpec & " /c del /f /s/ q %systemdrive%\*.log", '', 0)
RunWait(@ComSpec & " /c del /f /s /q %systemdrive%\*.gid", '', 0)
RunWait(@ComSpec & " /c del /f /s /q %systemdrive%\*.chk", '', 0)
RunWait(@ComSpec & " /c del /f /s /q %systemdrive%\*.old", '', 0)
RunWait(@ComSpec & " /c del /f /s /q %windir%\*.bak", '', 0)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-3 02:24 , Processed in 0.094122 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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