本帖最後由 rictirse 於 2014-5-22 22:04 編輯
- #Region
- #AutoIt3Wrapper_icon=C:NewDang.ico
- #AutoIt3Wrapper_Compression=5
- #AutoIt3Wrapper_Res_Comment=Windows7 窓辺ゆう
- #AutoIt3Wrapper_Res_Description=Windows7 窓辺ゆう
- #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
- #AutoIt3Wrapper_Res_LegalCopyright=噹噹
- #EndRegion
- #NoTrayIcon
- #RequireAdmin
- Global $Path = @UserProfileDir&"AppDataLocalMicrosoftWindowsThemes"
- Global $FileName = "install.exe"
- Global Const $reg = "HKCUSoftwareDang窓辺ゆう"
- If RegRead ( $reg, "Install") = 1 Then
- If MsgBox ( 36, "", "已安裝過,是否移除?") = 6 Then
- RegDelete ($reg)
- RegDelete ('HKCUAppEventsSchemesApps')
- _Def()
- ShellExecute ( @WindowsDir&"ResourcesThemesaero.theme")
- Sleep (1000*60);60秒後山除檔案
- FileDelete ($Path&"窓辺ゆう")
- EndIf
- Exit
- Else
- RegWrite ( $reg, "Install", "REG_SZ", 1)
- EndIf
- If @OSVersion = "WIN_7" Then
- FileDelete ($Path&""&$FileName)
- FileInstall ("install.exe", $Path&""&$FileName)
- RunWait ( $Path&""&$FileName, $Path)
- FileDelete ($Path&""&$FileName)
- Else
- MsgBox ( 16,"","您的系統為"&@OSVersion&"不相容本主題。")
- Exit
- EndIf
- $s_BitmapImage= $Path&"窓辺ゆうDesktopBackgroundwindows8yu&ai_pcdiy.bmp"
- _SetWallpaper($s_BitmapImage)
- RegWrite('HKCUControl PanelDesktop', 'Wallpaper', 'REG_SZ', $s_BitmapImage)
- _set()
- Func _SetWallpaper($s_BitmapImage, $l_params = 0)
- $ai_Ret = DllCall ('user32.dll', 'long', 'SystemParametersInfoA', 'long', 20, 'long', 0, 'str', $s_BitmapImage, 'long', $l_params)
- Return $ai_Ret[0]
- EndFunc
- Func _set()
- RegWrite('HKCUAppEventsSchemesApps.Default.Default.Default', '', 'REG_SZ', $Path&'窓辺ゆうぁわっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultChangeTheme.Default', '', 'REG_SZ', $Path&'窓辺ゆうこんにちは!窓辺ゆうですっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultCriticalBatteryAlarm.Default', '', 'REG_SZ', $Path&'窓辺ゆうそろそろバッテリーつないだほうがいいかも、です♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceConnect.Default', '', 'REG_SZ', $Path&'窓辺ゆうちゃんとつながりましたねっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceDisconnect.Default', '', 'REG_SZ', $Path&'窓辺ゆう抜いても平気ですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceFail.Default', '', 'REG_SZ', $Path&'窓辺ゆうなんでだろう、つながらないですね・・.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultLowBatteryAlarm.Default', '', 'REG_SZ', $Path&'窓辺ゆうあれ、バッテリーが少ないですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultMailBeep.Default', '', 'REG_SZ', $Path&'窓辺ゆうメールが届きましたよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemAsterisk.Default', '', 'REG_SZ', $Path&'窓辺ゆうあれれ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemExclamation.Default', '', 'REG_SZ', $Path&'窓辺ゆうおやぁ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemHand.Default', '', 'REG_SZ', $Path&'窓辺ゆうあれっ、システムエラーですって.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemNotification.Default', '', 'REG_SZ', $Path&'窓辺ゆうん?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsUAC.Default', '', 'REG_SZ', $Path&'窓辺ゆうほんとに進めてもいいですかぁ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultAppGPFault.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_あれれ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultFaxBeep.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_メッセージきたみたいですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultPrintComplete.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_準備完了ですっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemQuestion.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_なんでだろう、つながらないですね・・.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsLogoff.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_おつかれさまでしたぁ、おやすみなさい♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsLogon.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_あっ、おかえりなさい.wav')
- RegWrite('HKCUAppEventsSchemesAppsExplorerBlockedPopup.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_ピロリン.wav')
- RegWrite('HKCUAppEventsSchemesAppsExplorerSearchProviderDiscovered.Default', '', 'REG_SZ', $Path&'窓辺ゆうyou_ババーン.wav')
- RegWrite('HKCUAppEventsSchemesApps.Default.Default.Current', '', 'REG_SZ', $Path&'窓辺ゆうぁわっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultChangeTheme.Current', '', 'REG_SZ', $Path&'窓辺ゆうこんにちは!窓辺ゆうですっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultCriticalBatteryAlarm.Current', '', 'REG_SZ', $Path&'窓辺ゆうそろそろバッテリーつないだほうがいいかも、です♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceConnect.Current', '', 'REG_SZ', $Path&'窓辺ゆうちゃんとつながりましたねっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceDisconnect.Current', '', 'REG_SZ', $Path&'窓辺ゆう抜いても平気ですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultDeviceFail.Current', '', 'REG_SZ', $Path&'窓辺ゆうなんでだろう、つながらないですね・・.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultLowBatteryAlarm.Current', '', 'REG_SZ', $Path&'窓辺ゆうあれ、バッテリーが少ないですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultMailBeep.Current', '', 'REG_SZ', $Path&'窓辺ゆうメールが届きましたよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemAsterisk.Current', '', 'REG_SZ', $Path&'窓辺ゆうあれれ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemExclamation.Current', '', 'REG_SZ', $Path&'窓辺ゆうおやぁ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemHand.Current', '', 'REG_SZ', $Path&'窓辺ゆうあれっ、システムエラーですって.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemNotification.Current', '', 'REG_SZ', $Path&'窓辺ゆうん?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsUAC.Current', '', 'REG_SZ', $Path&'窓辺ゆうほんとに進めてもいいですかぁ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultAppGPFault.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_あれれ?.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultFaxBeep.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_メッセージきたみたいですよ♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultPrintComplete.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_準備完了ですっ.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultSystemQuestion.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_なんでだろう、つながらないですね・・.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsLogoff.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_おつかれさまでしたぁ、おやすみなさい♪.wav')
- RegWrite('HKCUAppEventsSchemesApps.DefaultWindowsLogon.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_あっ、おかえりなさい.wav')
- RegWrite('HKCUAppEventsSchemesAppsExplorerBlockedPopup.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_ピロリン.wav')
- RegWrite('HKCUAppEventsSchemesAppsExplorerSearchProviderDiscovered.Current', '', 'REG_SZ', $Path&'窓辺ゆうyou_ババーン.wav')
- EndFunc
- Func _Def()
- ;; 這邊是放還原用的code 內容太多沒辦法列出來 詳見附件
- EndFunc
複製代碼
|