Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm want converting autohotkey to QM
#1
I can not find the answer, so I ask for please help me.


Problem 1
autoHotkey Operators

X := (1920 // 160)
Y := (1080 // 128)

autoHotkey output
X: 960
Y: 8

I want to get the same value from QM as this result.


Problem 2
"**" Power. Both the base and the exponent may contain a decimal point. If the exponent is negative, the result will be formatted as a floating point number even if the base and exponent are both integers. Since ** is of higher precedence than unary minus, -2**2 is evaluated like -(2**2) and so yields -4. Thus, to raise a literal negative number to a power, enclose it in parentheses such as (-2)**2. Note: A negative base combined with a fractional exponent such as (-2)**0.5 is not supported; it will yield an empty string. But both (-2)**2 and (-2)**2.0 are supported.

I want to know the "**" operator and the corresponding QM operator.


Problem 3
":="Unlike most other operators, assignments are evaluated from right to left. Consequently, a line such as Var1 := Var2 := 0 first assigns 0 to Var2 then assigns Var2 to Var1.

I want to know the ":=" operator and the corresponding QM operator.
#2
1 don't know, 2 function pow(), 3 probably =.

http://www.quickmacros.com/help/Languag ... ATORS.html

To see the list, in code type
Code:
Copy      Help
math.
#3
I will try again.
Thank you for your help! Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)