Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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()

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...