sandin Posted July 27, 2008 Share Posted July 27, 2008 Hi all,This is the input box, I'm talking about:On double click, it doesn't select all, but only 2 numbers between ":" characters, how can this be done?, and how can I lock it to only numbers, but not higher than 59?Another question, how can I lock ":" characters? Cause those characters aren't selectable, nor changeable in the input box like this one.Thank you. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Pain Posted July 27, 2008 Share Posted July 27, 2008 look at the example for GUICtrlCreateDate in the helpfile. Link to comment Share on other sites More sharing options...
sandin Posted July 27, 2008 Author Share Posted July 27, 2008 Thank you very much Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
sandin Posted July 27, 2008 Author Share Posted July 27, 2008 I used: GUICtrlCreateDate("00:00:00", 85, 20, 100, 20, 0x09) but, there is one problem, if user has AM/PM clock settings, he get's "12:00:00 AM". I wanna use this kind of input for inputting time for timer (for count-down), but AM/PM would just confuse the user, is there a way to set time to 00-23, instead of 01-12 AM/PM? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
sandin Posted July 28, 2008 Author Share Posted July 28, 2008 can anyone please help me on this issue? If I use this kind of input for timer, then min. counting time is 1 hour. Is it possible to create input like this one, but to set time display 00-23 instead of 01-12? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
BrettF Posted July 28, 2008 Share Posted July 28, 2008 Could always use _DateAdd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
sandin Posted July 28, 2008 Author Share Posted July 28, 2008 tnx Ya, it can work, but it'll work only after user click START TIMER button, so, the user would still see hour settings, before he clicks the button, right? If this is not possible? Is it possible to recreate similar input box? With non-selectable ":" marks, and inputting numbers not higher than 59? The only thing I'm thinking of at the moment, is making 3 different inputs with ":" label between them, but I would really love if someone could help me with the guictrlcreatedate-type input. Thank you. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
ProgAndy Posted July 28, 2008 Share Posted July 28, 2008 You just have to set the display-Format #include <GuiDateTimePicker.au3> $DTPicker = (GUICtrlCreateDate("", 2, 6, 80,Default,$DTS_UPDOWN )) $handleDTP = GUICtrlGetHandle($DTPicker) ; Set the display format HH -> 24 Hour Display _GUICtrlDTP_SetFormat($handleDTP,"HH:mm:ss") *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
sandin Posted July 28, 2008 Author Share Posted July 28, 2008 omg, thank you so much! This is perfect ...and I started making brand new input ^^ #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 300, 150) $Input1 = GUICtrlCreateInput("00", 20, 20, 13, 17, 0x2000, 0x00000080) GUICtrlSetLimit(-1, 2) GUICtrlCreateLabel(":", 33, 20, 3, 17) GUICtrlSetBkColor(-1, 0xFFFFFF) GUICtrlSetColor(-1, 0) $input2 = GUICtrlCreateInput("00", 36, 20, 13, 17, 0x2000, 0x00000080) GUICtrlSetLimit(-1, 2) GUICtrlCreateLabel(":", 49, 20, 3, 17) GUICtrlSetBkColor(-1, 0xFFFFFF) GUICtrlSetColor(-1, 0) $input3 = GUICtrlCreateInput("00", 52, 20, 16, 17, 0x2000, 0x00000080) GUICtrlSetLimit(-1, 2) $input4 = GUICtrlCreateInput("", 70, 19, 15, 19) $up_down = GUICtrlCreateUpdown(-1) GUICtrlCreateGraphic(19, 19, 50, 1, 0x08) GUICtrlCreateGraphic(19, 37, 50, 1, 0x08) GUICtrlCreateGraphic(19, 20, 1, 17, 0x08) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now