Dag Posted November 1, 2006 Share Posted November 1, 2006 hello, i got short question i'd like to make a script what calculate some formulas to correct working i need to approximate numbers i need numbers like 2, 68, 1459 ... but after division i got 2,14 68,015 1459,821 here is a part of my code $szybkosc = 1800 Func szybkosc_up () TrayTip("", "Speed UP",1,16) $szybkosc=$szybkosc-250 EndFunc ;************************* Func szybkosc_down () TrayTip("", "Speed Down",1,16) $szybkosc=$szybkosc+250 EndFunc ;************************* if $xxxx = 1 then If $z= 60000/ $szybkosc Then; i need here a number without ,3265432127 to call macro1 every 1 minute Call ("macro1") $z = 1 endif $z = $z +1 endif sorry for my english and thx for help Link to comment Share on other sites More sharing options...
BigDod Posted November 1, 2006 Share Posted November 1, 2006 Lookup Round in the help file Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Xenobiologist Posted November 1, 2006 Share Posted November 1, 2006 Hi, and maybe have a look at Ceiling and Floor, too. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Dag Posted November 1, 2006 Author Share Posted November 1, 2006 thanks a lot this is what i need Link to comment Share on other sites More sharing options...
Helge Posted November 1, 2006 Share Posted November 1, 2006 Ehm...why do you use Call like that ? When you know the function name at the time you write the script there's no need to do it like that, but instead you could have just called it directly : macro1() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now