Search the Community
Showing results for tags 'yday'.
-
hi i have some calculate problems... here is the code. Func date() if $ar=@year And (($dag+14 ) < @yday) then Call("monad") else MouseClick("left",448, 164) Sleep(500) MouseClick("left",466, 230) endif EndFunc Func monad() do if $month = "jan " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag +31 EndIf if $month = "feb " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+29 EndIf if $month = "mar " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf if $month = "apr " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+30 EndIf if $month = "may " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf if $month = "jun " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+30 EndIf if $month = "jul " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf if $month = "agu " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf if $month = "sep " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+30 EndIf if $month = "oct " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf if $month = "nov " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+30 EndIf if $month = "dec " Then MouseClick("left",448, 164) Sleep(500) MouseClick("left",524, 228) ExitLoop Else $dag=$dag+31 EndIf until 1=1 EndFunc and here is where the problems is. Func date() if $ar=@year And (($dag+14 ) < @yday) then Call("monad") else MouseClick("left",448, 164) Sleep(500) MouseClick("left",466, 230) endif EndFunc the problem is that the calculation does not work. i want the script to take the year and the month and the day a person registerd on a forum, and thats works perfektly. but i have this calculation becuse i want the script to know if the person was last active on the forum in the past 14 days. but now it is saying that every one who registerd at the year of 2012 have been online during the past 14 days but that is not correct. so if someone knows a cleaver way to slow this and like to share it with me i will be very thanks full and you will be a