Emiel Wieldraaijer Posted February 23, 2007 Posted February 23, 2007 HI All, is there a way to create an updown function like the windows clock which is used in the taskscheduler ? Thanx Emiel Best regards,Emiel Wieldraaijer
James Posted February 23, 2007 Posted February 23, 2007 (edited) GUICtrlCreateUpdown ( inputcontrolID [,style] ) Helpfile helps. Edited February 23, 2007 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Emiel Wieldraaijer Posted February 23, 2007 Author Posted February 23, 2007 Yeah i know But it's not the clock which is used in the taskscheduler, the clock in the taskscheduler .. bypasses the limits and starts over .. Emiel Best regards,Emiel Wieldraaijer
James Posted February 23, 2007 Posted February 23, 2007 You said UpDown, are you talking about the function? Or the actual GUI Control? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Paulie Posted February 24, 2007 Posted February 24, 2007 But it's not the clock which is used in the taskscheduler, the clock in the taskscheduler .. bypasses the limits and starts over ..That was possibly one of the most incoherent and seemingly contradictory things i think i've ever read.Try running that by me/us again please, except this time, try it in "not gibberish".
Emiel Wieldraaijer Posted March 16, 2007 Author Posted March 16, 2007 Ok i'll try to explain it a little bit better I want to create a clock, which has one up and down button like the one created by GUICtrlCreateUpdown when i press the up button .. i want 1-2-3-4-5-6-7-8-9-10-11-12-1-2-3-4-5-6-7-8 ................................. (A looping limit) the same for the minutes .. but only one up and down button.. if you want an example of the clock i want .. schedule a task .. Thnx Emiel Best regards,Emiel Wieldraaijer
WeMartiansAreFriendly Posted March 17, 2007 Posted March 17, 2007 (edited) Ok i'll try to explain it a little bit better I want to create a clock, which has one up and down button like the one created by GUICtrlCreateUpdown when i press the up button .. i want 1-2-3-4-5-6-7-8-9-10-11-12-1-2-3-4-5-6-7-8 ................................. (A looping limit) the same for the minutes .. but only one up and down button.. if you want an example of the clock i want .. schedule a task .. Thnx Emielsee the help file.. err. ok #include <GUIConstants.au3> $Form1 = GUICreate("AForm1", 622, 447, 192, 125) $DTM_SETFORMAT = 0x1005 $Date = GUICtrlCreateDate ('12:00:04', 145, 99, 121, 21 , $DTS_TIMEFORMAT) GuiCtrlSendMsg(-1, $DTM_SETFORMAT, 0, "hh:mm:ss tt") ;;hh= 12 hour, HH=24 hour GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Edited March 17, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Alek Posted March 17, 2007 Posted March 17, 2007 Ok i'll try to explain it a little bit better I want to create a clock, which has one up and down button like the one created by GUICtrlCreateUpdown when i press the up button .. i want 1-2-3-4-5-6-7-8-9-10-11-12-1-2-3-4-5-6-7-8 ................................. (A looping limit) the same for the minutes .. but only one up and down button.. if you want an example of the clock i want .. schedule a task .. Thnx Emiellike this one?? #include <GuiConstants.au3> GuiCreate("MyGUI", 70, 46,-1, -1) $Input_1 = GuiCtrlCreateInput("1", 10, 10, 40, 20) GUICtrlCreateUpdown($Input_1) GuiSetState() do $msg = GuiGetMsg() $r = GUICtrlRead ($Input_1) if $r >12 then GUICtrlSetData($Input_1,1) if $r < 1 then GUICtrlSetData($Input_1,12) Until $msg = $GUI_EVENT_CLOSE Exit [font="Impact"]Never fear, I is here.[/font]
Emiel Wieldraaijer Posted March 17, 2007 Author Posted March 17, 2007 @All thnx you guys i never thought about GUICtrlCreateDate and indeed it's in the help file... Emiel Best regards,Emiel Wieldraaijer
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