Jump to content
Sign in to follow this  
wedsxcrfv

Need help time- based event

Recommended Posts

wedsxcrfv

I am almost there in creating an wonderful programme.

But i dont understand why it doesnt run if i do this

If @HOUR = $hour And @MIN = $min Then

I set the $hour and $min to the current time but it doesnt run!!!


I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post


Link to post
Share on other sites
Nahuel

Did you do this?

$hour = @HOUR

$min = @MIN

If @HOUR = $hour And @MIN = $min Then

Share this post


Link to post
Share on other sites
weaponx

Did you do this?

$hour = @HOUR

$min = @MIN

If @HOUR = $hour And @MIN = $min Then

Nahuel...that will be true every time it runs. :P

Edited by weaponx

Share this post


Link to post
Share on other sites
Nahuel

Nahuel...that will be true every time it runs. :P

Well of course, that was my point... I wanted to make sure he's declaring or changing the values of $hour and $min before testing them...

Share this post


Link to post
Share on other sites
wedsxcrfv

Yea, but i did that you can fill it in in a Dialogue

$InstellenUurMinuut = GUICreate("Instellen Uur & Minuut", 282, 216, 279, 195)
GUICtrlCreateInput("Vul hier uur in", 32, 48, 161, 21, BitOR($ES_AUTOHSCROLL,$ES_NUMBER))
GUICtrlCreateInput("Vul hier de minuut in", 32, 120, 161, 21, BitOR($ES_AUTOHSCROLL,$ES_NUMBER))
$BeginUur = GUICtrlCreateLabel("Begin Uur", 32, 16, 51, 17)
$BeginMinuut = GUICtrlCreateLabel("Begin Minuut", 32, 88, 66, 17)
$Start = GUICtrlCreateButton("Start", 32, 160, 57, 33, 0)
$Cancel = GUICtrlCreateButton("Cancel", 136, 160, 57, 33, 0)
GUISetState(@SW_SHOW)

And under that just something what he does


I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post


Link to post
Share on other sites
weaponx

Well of course, that was my point... I wanted to make sure he's declaring or changing the values of $hour and $min before testing them...

Sorry.

I would just echo everything out before the condition is tested, to make sure the conditions match:

MsgBox(0,"", "$hour: " & $hour & @CRLF & "$min: " & $min & @CRLF & @HOUR & @CRLF & @MIN)

Share this post


Link to post
Share on other sites
wedsxcrfv

Well, it says that the &hour is Begin Uur Wich means it doesnt change the value if i type something in it and press ok


I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post


Link to post
Share on other sites
wedsxcrfv

Oh dammit i already found my misatke i rad the label instead of the box!!!


I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post


Link to post
Share on other sites
wedsxcrfv

Fixed now


I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post


Link to post
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
Sign in to follow this  

×