;Separator Creation Func GuiCtrlCreateSeperator($Direction, $Left, $Top, $Width=3, $Lenght=25) Switch $Direction Case 0 GUICtrlCreateLabel("", $Left, $Top, $Lenght, $Width, $SS_SUNKEN) Case 1 GUICtrlCreateLabel("", $Left, $Top, $Width, $Lenght, $SS_SUNKEN) EndSwitch EndFunc Func f_SelDrive() Global $iCombo, $aDrive, $sDriveData = "Please Select A Removable Drive..." & "|", $sRead Global $g_SelDrive = GUICreate("Removable Drives", 210, 60) $iCombo = GUICtrlCreateCombo("", 5, 5) $iButton = GUICtrlCreateButton("Select", 140, 32.5, 65, 20) GUICtrlSetOnEvent (-1, "f_SelSource") GUISetOnEvent($GUI_EVENT_CLOSE, "f_closeGUI") $aDrive = DriveGetDrive("REMOVABLE") If $aDrive = "" Then MsgBox(0, "", "No Removable Disks Detected Please plus one or Soft will exit.") For $i = 1 To $aDrive[0] $sDriveData = StringUpper($aDrive[$i]) & "\" & "|" Next GUICtrlSetData($iCombo, $sDriveData, "Please Select A Removable Drive...") GUISetState(@SW_SHOW) EndFunc Func f_SelSource() $s_Drive = GUICtrlRead($iCombo) GUISwitch($g_RobocopyGUI) GUICtrlCreateLabel ("Selected Source is: " & $s_Drive , 170, 180, 200, 20) GuiCtrlSetColor (-1, $COLOR_GREEN) GUICtrlSetFont (-1, 8.5, 700, 0) GUICtrlCreateLabel ("- Step 2: Select what To Copy:", 5, 220,350) GUICtrlSetFont (-1, 8.5, 700, 0) Global $chk_All = GUICtrlCreateRadio ("Everything", 5, 250, 100) GuiCtrlSetOnEvent(-1, "f_Checkme") Global $chk_Contacts = GUICtrlCreateCheckbox ("Contacts Folder Only", 5, 270, 300) Global $chk_Desktop = GUICtrlCreateCheckbox ("Desktop Folder Only", 5, 290, 300) Global $chk_Downloads = GUICtrlCreateCheckbox ("Downloads Folder Only", 5, 310, 300) Global $chk_Favorites = GUICtrlCreateCheckbox ("Favorites Folder Only", 5, 330, 300) Global $chk_MyDocuments = GUICtrlCreateCheckbox ("My Documents Folder Only", 5, 350, 300) Global $chk_MyMusic = GUICtrlCreateCheckbox ("My Music Folder Only", 5, 370, 300) Global $chk_MyPictures = GUICtrlCreateCheckbox ("My Pictures Folder Only", 5, 390, 300) Global $chk_MyVideos = GUICtrlCreateCheckbox ("My Videos Folder Only", 5, 410, 300) Global $chk_Searches = GUICtrlCreateCheckbox ("Searches Folder Only", 5, 430, 300) Global $chk_StickyNotes = GUICtrlCreateCheckbox ("Sticky Notes Only", 5, 450, 300) Global $chk_SAPLogon = GUICtrlCreateCheckbox ("SAP Logon INI Only", 5, 470, 300) Global $btn_Reset = GUICtrlCreateButton ("Undo", 150, 246) GUICtrlSetOnEvent (-1, "f_Undo") GUICtrlSetState (-1, $GUI_DISABLE) GUICtrlSetState($chk_SelectedBtn, $GUI_ENABLE) GuiDelete ($g_SelDrive) EndFunc Func f_Undo() GUICTrlSetState($btn_Reset, $GUI_DISABLE) GUICtrlSetState($chk_All, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_Contacts, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_Desktop, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_Downloads, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_Favorites, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_MyDocuments, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_MyMusic, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_MyPictures, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_MyVideos, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_Searches, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_StickyNotes, $GUI_UNCHECKED + $GUI_ENABLE) GUICtrlSetState($chk_SAPLogon, $GUI_UNCHECKED + $GUI_ENABLE) EndFunc Func SubmitCopyChoice() ;TODO TODO TODO TODO EndFunc Func _IsChecked($idControlID) Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED EndFunc ;==>_IsChecked Func _exit() Exit EndFunc Func f_closeGUI() GUIdelete() EndFunc Func f_Checkme() GUICTrlSetState($btn_Reset, $GUI_ENABLE) GUICtrlSetState($chk_Contacts, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_Desktop, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_Downloads, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_Favorites, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_MyDocuments, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_MyMusic, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_MyPictures, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_MyVideos, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_Searches, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_StickyNotes, $GUI_CHECKED + $GUI_DISABLE) GUICtrlSetState($chk_SAPLogon, $GUI_CHECKED + $GUI_DISABLE) EndFunc