TIME2JD convert time from unix TIME to JULIANDATE. MJD days since the start of November 17, 1858. JULIANDATE or JD days (and fractions of days) since JanuBC Greenwich noon. TIME current time in seconds since the start of 1970. IDLE the number of (fractional) seconds the Mac has been idle. TRIGGERTIME the time in (fractional) seconds since the start of 1970 when the macro was triggered. NOW current time in seconds since the start of 1970. SECONDS fractional seconds since startup. MILLISECONDS or MILLS or MS fractional milliseconds since startup. MICROSECONDS or MICROS microseconds since startup. RAND random integer number from 0 to, but not including, N. RANDOM random real number from 0 to, but not including, N (defaults to 1). Supported functions include: SIN, COS, TAN, ASIN, ACOS, ATAN, ATAN2 trigonometry functions SINH, COSH, TANH, ASINH, ACOSH, ATANH hyperbolic trigonometry functions EXP exponentiation of e. To minimize conflict with variables, operators and functions must be in uppercase. unary postfix operators (!,%,°) factorial, percent, degrees. numbers and variables or array accesses (5,$5A,0x50,8#007,Variable,Variable) identifiers and values. unary prefix operators (√, -, brackets) square root, negation, sub-expressions. multiplication operators (*, /, MOD) multiply, divide or mod. addition operators (+, -) add or subtract. shift operators (≪, ≫) shift a number left or right. comparison operators (, ≥, ≠) compare for (in)equality and return 0 or 1. bitwise or (|), bitwise and (&) and bitwise xor operators. Operators based on precedence from lowest to highest are: array separator (,) separates elements of an array. Keyboard Maestro’s expressions include precedence, nested bracketed expressions, many built-in functions, various numeric bases, so you should be able to write most expressions you might like to use, as well as use it as a general purpose calculator if desired. Unfortunately, because of this you must use commas for this purpose, and full stops (.) for decimal numbers, regardless of your desired language, and never use any thousands separators. Will result in the mouse being placed at the center of the front window. Set variable ‘Temp’ To Calculation ‘Temp+Temp/2,Temp+Temp/2’ Set variable ‘Temp’ To Text ‘%FrontWindowFrame%’ Calculations can also use comma separated lists of numbers as arrays, and can return such arrays, so you can operate on frames and points, for example: For example you can Pause for 60*Time in Minutes. Keyboard Maestro supports calculations in almost any numeric field.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |