Jump to content

GUICtrlCreateUpdown Like Windows Clock


Recommended Posts

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".

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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

see 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 by mrRevoked
Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

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

like 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]

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...