Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted

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

Posted

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

Posted

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)
Posted

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

Posted

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

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
×
×
  • Create New...