View Full Version : XPNDR Calculation
mitch1998
11-18-2005, 03:24 PM
Does anyone know what the formula is for (>K:XPNDR_SET)?
If I input 1200 I get 0430, inputing 1400 gets 0570.
Thanks
Mitch
n4gix
11-18-2005, 07:38 PM
<Element>
<Select>
<Value> (G:Var4) (G:Var3) 16 * + (G:Var2) 256 * + (G:Var1) 4096 * + (>G:Var5) </Value>
</Select>
</Element>
<Element>
<Text X="41" Y="9" Length="6" Font="Arial" Color="#00ff00" Fixed="yes" Adjust="CENTER" VerticalAdjust="CENTER" Multiline="NO">
<String>%((G:Var5))%!4d!</String>
</Text>
</Element>
<Click> (G:Var5) (>K:XPNDR_SET)</Click>
Of course you have to set the G:Var's like:
<Click Repeat="Yes"> (G:Var1) 1 - 0 max (>G:Var1)</Click>
<Click Repeat="Yes"> (G:Var1) 1 + 7 min (>G:Var1)</Click>
mitch1998
11-18-2005, 08:25 PM
Nick Pike also gave me about the same answer at his site. This is what I did and it works great.
(L:NUMPAD_WHOLE,enum) 10 %
(L:NUMPAD_WHOLE,enum) 10 / int 10 % 16 * +
(L:NUMPAD_WHOLE,enum) 100 / int 10 % 256 * +
(L:NUMPAD_WHOLE,enum) 1000 / int 4096 * + (>K:XPNDR_SET)
Heaps of thanks.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.