AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

math

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kingivvi
Guest





PostPosted: Wed Mar 16, 2005 5:41 am    Post subject: math Reply with quote

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

PostPosted: Wed Mar 16, 2005 6:11 am    Post subject: Reply with quote

use this
Code:
solutionver := var * ver2 / 4 + 4


have a look for expressions in the manual
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kingivvi
Guest





PostPosted: Wed Mar 16, 2005 6:13 am    Post subject: Reply with quote

thanks for your time Smile
Back to top
kingivvi
Guest





PostPosted: Wed Mar 16, 2005 6:59 am    Post subject: Reply with quote

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

PostPosted: Wed Mar 16, 2005 7:04 am    Post subject: Reply with quote

what version of AHK are you using?

Please update to the latest.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kingivvi
Guest





PostPosted: Wed Mar 16, 2005 7:10 am    Post subject: Reply with quote

thanks man that was it i had an old vertion
Back to top
kingivvi
Guest





PostPosted: Mon Apr 18, 2005 4:07 am    Post subject: knight online Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group