| View previous topic :: View next topic |
| Author |
Message |
kingivvi Guest
|
Posted: Wed Mar 16, 2005 5:41 am Post subject: math |
|
|
i hope someone can find the time for this noob question. my programs come to a brick wall on this simple problem. how do i do math? i read the help and i realy dont get ir at all
heres what i need todo maybe someone can give an exaple forr me please.
solutionver = var * ver2 / 4 + 4
any help would be apretiated alot |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Wed Mar 16, 2005 6:11 am Post subject: |
|
|
use this
| Code: | | solutionver := var * ver2 / 4 + 4 |
have a look for expressions in the manual _________________ Ciao
toralf  |
|
| Back to top |
|
 |
kingivvi Guest
|
Posted: Wed Mar 16, 2005 6:13 am Post subject: |
|
|
thanks for your time  |
|
| Back to top |
|
 |
kingivvi Guest
|
Posted: Wed Mar 16, 2005 6:59 am Post subject: |
|
|
i think i may have a vertion that doesnot suport this operator
Finally, to assign the result of an expression to a variable, use the := operator as in this example:
NetPrice := Price * (1 - Discount/100)
becouse i get an error when i use it
it says
line text:
error this line does not containe any recognized action
ive read
http://www.autohotkey.com/docs/Variables.htm
and := seams to be what i need to put my math solution in a veriable
am i missing something? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Wed Mar 16, 2005 7:04 am Post subject: |
|
|
what version of AHK are you using?
Please update to the latest. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
kingivvi Guest
|
Posted: Wed Mar 16, 2005 7:10 am Post subject: |
|
|
| thanks man that was it i had an old vertion |
|
| Back to top |
|
 |
kingivvi Guest
|
Posted: Mon Apr 18, 2005 4:07 am Post subject: knight online |
|
|
1.i have invested alot of time learning this awesome program and was wondering if anyone has had any luck with it working with knight online. it seams to only send when i hit enter for chat. i tryd ac tool which i felt was lacking in a lot of departments espetialy compileing to exe , but it does work with windows xp on knight online but on windows me it does the same as auto hotkey only sends to chat bar any imput on this would be grate
2.also ac tool had a read write to memory which would just compleate auto hotkey anyone herd information about it being included ? |
|
| Back to top |
|
 |
|