分享一份一键还原工具AU3源代码-界面是高仿YLMF还原工具的!大家试试就知道了
#Region ;**** ²ÎÊý´´½¨ÓÚ AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=LOGO/biosclub.ico #AutoIt3Wrapper_outfile=e:/onekey.exe #EndRegion ;**** ²ÎÊý´´½¨ÓÚ AutoIt3Wrapper_GUI **** #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=e:/½Å±¾/au3/gui/onekey.kxf Global $sysinfo1, $sysinfo2 $sysinfo1 = True $AForm1 = GUICreate("onekey Ò»¼ü±¸•Ý»¹Ô", 351, 200, -1, -1,$WS_SIZEBOX+$WS_SYSMENU) $varhd = "C:" $getlist = "C:" $Group1 = GUICtrlCreateGroup("", 7, 0, 337, 132) $Group2 = GUICtrlCreateGroup("Ghost ²Ù×÷£º", 13, 13, 147, 47) $bf = GUICtrlCreateRadio("±¸•Ö", 29, 30, 55, 17) $hy = GUICtrlCreateRadio("»¹Ô", 94, 31, 49, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) $bfhy = GUICtrlCreateGroup("±¸•Ý•ÖÇø£º", 165, 13, 172, 60) $Label1 = GUICtrlCreateLabel("C:ÅÌ×ÜÌåÈÝÁ¿£º" & Round(DriveSpaceTotal("c:")) & "M", 186, 34, 141, 17, $WS_DISABLED) ;$Label1 = GUICtrlCreateLabel("", 186, 34, 141, 17,$WS_DISABLED) $Label2 = GUICtrlCreateLabel("", 186, 52, 141, 17, $WS_DISABLED) $List1 = GUICtrlCreateCombo($varhd, 225, 11, 39, 20,$CBS_DROPDOWNLIST) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group4 = GUICtrlCreateGroup("Ghost ¾µÏñÎļþ•¾¶£º", 14, 72, 324, 51) Global $sTmpFile = 'G:/Ghost/C_WinXP.GHO' Global $hFile = GUICtrlCreateInput("G:/Ghost/C_WinXP.GHO", 21, 90, 241, 21) GUICtrlSetState(-1, $GUI_DROPACCEPTED) Global $hFileSel1 = GUICtrlCreateButton("±£´æ(S)", 268, 89, 65, 22) $advbt = GUICtrlCreateButton("¸ß¼¶(&A)", 24, 139, 65, 23) $Button3 = GUICtrlCreateButton("³•Ïú(&S)", 106, 139, 65, 23) $Button4 = GUICtrlCreateButton("È•¶¨(&O)", 187, 139, 65, 23) $cancelbutton = GUICtrlCreateButton("Í˳ö(&X)", 269, 139, 65, 23) GUICtrlSetState($hy, $GUI_CHECKED) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $var = DriveGetDrive("FIXED") If Not @error Then For $i = 1 To $var[0] $varhd = GUICtrlSetData($List1, StringUpper($var[$i])) $lasthd = StringUpper($var[0]) $lastdrv = StringUpper($var[$lasthd]) Next EndIf While 1 $Msg = GUIGetMsg() Select Case $Msg = $cancelbutton Or $Msg = $GUI_EVENT_CLOSE ExitLoop Case $Msg = $hy $sysinfo1 = True $sysinfo2 = False $bfhyt = "»¹Ô•ÖÇø£º" GUICtrlSetData($bfhy, $bfhyt) GUICtrlSetData($hFileSel1, "´ò¿ª(&O)") ControlDisable("", "", $Button4) ControlHide("", "", $Label2) GUICtrlSetData($Label1, $getlist & "ÅÌ×ÜÌåÈÝÁ¿£º" & Round(DriveSpaceTotal($getlist)) & "M") Case $Msg = $bf $sysinfo2 = True $sysinfo1 = False $bfhyt = "±¸•Ý•ÖÇø£º" GUICtrlSetData($bfhy, $bfhyt) GUICtrlSetData($hFileSel1, "±£´æ(&S)") ControlEnable("", "", $Button4) ControlEnable("", "", $Button3) ControlShow("", "", $Label2) GUICtrlSetData($Label1, $getlist & "ÅÌÒÑÓÿռ䣺" & (Round(DriveSpaceTotal($getlist)) - Round(DriveSpaceFree($getlist))) & "M") GUICtrlSetData($Label2, $lastdrv & "ÅÌ¿ÉÓÿռ䣺" & Round(DriveSpaceFree($lastdrv)) & "M") Case $Msg = $hFileSel1 If $bfhyt = "»¹Ô•ÖÇø£º" Then Global $sTmpFile = FileOpenDialog("Select file:", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "(*.gho;)") If @error Then ContinueLoop GUICtrlSetData($hFile, $sTmpFile) Else Global $sTmpFile = FileSaveDialog("Select file:", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "(*.gho;)") If @error Then ContinueLoop GUICtrlSetData($hFile, $sTmpFile) EndIf Case $Msg = $List1 ;If BitAnd(GUICtrlRead($hy), $GUI_DEFBUTTON) Then If $sysinfo1 = True Then $getlist = GUICtrlRead($List1) GUICtrlSetData($Label1, $getlist & "ÅÌ×ÜÌåÈÝÁ¿£º" & (Round(DriveSpaceTotal($getlist))) & "M") Else GUICtrlSetData($Label1, $getlist & "ÅÌÒÑÓÿռ䣺" & (Round(DriveSpaceTotal($getlist)) - Round(DriveSpaceFree($getlist))) & "M") EndIf If $sysinfo2 = True Then $getlist = GUICtrlRead($List1) GUICtrlSetData($Label1, $getlist & "ÅÌÒÑÓÿռ䣺" & (Round(DriveSpaceTotal($getlist)) - Round(DriveSpaceFree($getlist))) & "M") Else GUICtrlSetData($Label1, $getlist & "ÅÌ×ÜÌåÈÝÁ¿£º" & (Round(DriveSpaceTotal($getlist))) & "M") EndIf Case $Msg = $advbt GUICtrlSetData($advbt, "¼ò½à(&S)") ;### Tidy Error -> "wend" is closing previous "case" EndSelect WEnd
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/215707.html