wedsxcrfv Posted November 20, 2007 Posted November 20, 2007 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
Nahuel Posted November 20, 2007 Posted November 20, 2007 Did you do this? $hour = @HOUR $min = @MIN If @HOUR = $hour And @MIN = $min Then
weaponx Posted November 20, 2007 Posted November 20, 2007 (edited) Did you do this?$hour = @HOUR$min = @MINIf @HOUR = $hour And @MIN = $min ThenNahuel...that will be true every time it runs. Edited November 20, 2007 by weaponx
Nahuel Posted November 20, 2007 Posted November 20, 2007 Nahuel...that will be true every time it runs. 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...
wedsxcrfv Posted November 20, 2007 Author Posted November 20, 2007 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
weaponx Posted November 20, 2007 Posted November 20, 2007 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)
wedsxcrfv Posted November 20, 2007 Author Posted November 20, 2007 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
wedsxcrfv Posted November 20, 2007 Author Posted November 20, 2007 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
wedsxcrfv Posted November 20, 2007 Author Posted November 20, 2007 Fixed now I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P
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