Sign in to follow this  
Followers 0
akurakkauaaa

exist macro @hour+min?

2 posts in this topic

exist macro "@hour+min" ?

because acctual my pro algorithm...

$timeA = 1

$timeB = 30

if (@HOUR & @MIN) > ( 22 & 31) and (@HOUR & @MIN) < ($timeA & $timeB)then

$time1 = $timeA - @HOUR

$time2 = $timeB - @MIN

TraySetToolTip( $time1 & $time2 ,5,5 )

endif

...is: Posted Image

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

if (@HOUR & @MIN) > ( 22 & 31) and (@HOUR & @MIN) < ($timeA & $timeB)then

if ( (@hour * 60) +@min) > ( (22 * 60) + 31) and ....

you may have to use (Number(@hour) * 60) + Number(@min)

Note: & concatenates two strings, and will automatically convert other types, such as int, to a string.

Edited by blakel

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  
Followers 0