<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Stargate Auto Dialer
I@Button
O@StargateWireInput StargateFastDial Gateaddress
#if Button is wired and activated
~Button & Button ->
#then dial gate
schedule(100)
StargateFastDial = 0;
clk() ->
Chevron += 1
schedule(100)
;
Chevron == 1 -> StargateWireInput = 69;
Chevron == 2 -> StargateWireInput = 65;
Chevron == 3 -> StargateWireInput = 82;
Chevron == 4 -> StargateWireInput = 84;
Chevron == 5 -> StargateWireInput = 72;
Chevron == 6 -> StargateWireInput = 49;
Chevron == 7 -> StargateFastDial = 1;
Chevron == 8 -> schedule(0), Chevron = 0
StargateWireInput = 0;
Gateaddress = StargateWireInput
</div>
This is my code for my auto diarler, and i want to be able to change the destination to which this dials, WITHOUT changing the chip values... ie i need something that does this ...
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
N@Stargate Auto Dialer
I@Button Panel
O@StargateWireInput StargateFastDial Gateaddress
#if Button is wired and activated
~Button & Button ->
#then dial gate
schedule(100)
StargateFastDial = 0;
clk() ->
Chevron += 1
schedule(100)
;
Chevron == 1 -> StargateWireInput = Panel(values 1 and 2);
Chevron == 2 -> StargateWireInput = Panel(values 3 and 4);
Chevron == 3 -> StargateWireInput = Panel(values 5 and 6);
Chevron == 4 -> StargateWireInput = Panel(values 7 and 8);
Chevron == 5 -> StargateWireInput = Panel(values 9 and 10);
Chevron == 6 -> StargateWireInput = Panel(values 11 and 12);
Chevron == 7 -> StargateFastDial = 1;
Chevron == 8 -> schedule(0), Chevron = 0
StargateWireInput = 0;
Gateaddress = StargateWireInput
</div>
For example say Panel = 696582847249 (EARTH1),
then i want the dialer to only grab pairs of numbers at a time.
ie. 69, then 65, then 82 ... etc.
Is there anyway to store the values into an array, and then just get the first 2 values and then go onto the next ??
Any help would be great!!!


LinkBack URL
About LinkBacks


re;overflow:auto'>N@Stargate Auto Dialer



Reply With Quote



Bookmarks