yousefsamy Posted June 24, 2014 Share Posted June 24, 2014 what's the problem here ? here is my source : expandcollapse popup#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1_1 = GUICreate("Timer V1.1", 285, 149, 192, 124) GUISetBkColor(0x99B4D1) $Combo1 = GUICtrlCreateCombo("ShutDown", 16, 8, 241, 25, BitOR($GUI_SS_DEFAULT_COMBO,$CBS_SIMPLE)) GUICtrlSetFont(-1, 10, 400, 0, "Impact") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x6D6D6D) $start = GUICtrlCreateButton("Start", 152, 48, 129, 97) $Label1 = GUICtrlCreateLabel("Mins", 24, 64, 51, 31) GUICtrlSetFont(-1, 16, 400, 0, "Neo Tech Alt Medium") $Input1 = GUICtrlCreateInput("", 24, 96, 105, 32, BitOR($GUI_SS_DEFAULT_INPUT,$ES_NUMBER)) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") GUICtrlSetData( $Combo1 , "Restart |Log off") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $start $t = GUICtrlRead($Input1) $c = GUICtrlRead($Combo1) If $c = "Shutdown" Then Sleep( $t * 60000 ) MsgBox(0,"Shutdown Operation","will shutdown 10 seconds") Sleep(10000) Shutdown( 1 + 4 ) ElseIf $c = "Restart" Then Sleep( $t * 60000 ) MsgBox(0,"Restart Operation","will restart in 10 seconds") Sleep(10000) Shutdown( 2 + 1 ) ElseIf $c = "Log off" Then Sleep( $t * 60000 ) MsgBox(0,"Log off Operation","will log off in 10 seconds") Sleep(10000) Shutdown( 0 + 1 ) EndIf EndSwitch WEnd and what about this pic ?? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 24, 2014 Moderators Share Posted June 24, 2014 yousefsamy, what's the problem here ?Poor AV scanners - who has ever heard of those 3? Read the pinned thread here - thread locked to prevent the Oozlum bird getting out yet again. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
yousefsamy Posted June 24, 2014 Author Share Posted June 24, 2014 (edited) Edited June 24, 2014 by Melba23 Merged threads Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 24, 2014 Moderators Share Posted June 24, 2014 yousefsamy,Stop posting about this! We all know it happens and the pinned thread to which I linked you tells you what to do about it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts