I'm filling in the gaps from the initial basic array, so if the entire Array is moved to Array 5 to 20, i use the values from the basic array 1 to 5 & copy them to the now empty Arrays 1 to 5, as the entire array has been moved to Array 5 to 20.
The script works great.
But it flickers like crazy, atm the entire array is filled all at once as it cascades, I'm not sure how to get the script to update step by step to stop the flickering, instead of the entire array ...
Thanks ...
Code: Select all
#SingleInstance, Force
;Create Initial Array
Data := Object()
i:=39
Loop 20
{
i++
data[A_Index] := i
}
Value := data[5]
x:=0
number:=0
YAxisInc:=12
StatusInc:=1
NumStatusInc:=1
loop
{
;Creates Initial Array In Gui As Guide Left Row
Loop, 20
{
x++ ;Increments by - to create 40 to 60
y1:=data[x]
YAxis:=number += YAxisInc ;Increments by 12 to create a gap of 12 between numbers
Gui,Add,Text,x160 y%YAxis% , %x% %y1%
}
;Create Variables To Show In Gui
;Outerloop Using OuterInc Cascades The Entire Initial Array From Array 1 To Array 20, Array 2 to Array 20 etc.,
;InnerLoopFill Creates An InnerLoop Using OuterInc To Fill In Gaps Created By Cascading The Initial Array
;If the Entire Initial Array gets displaced From Array 1 to Array 5 The InnerLoopLoop Fills Empty Values In Array 1 to 5 Using Values 1 to 5 From Initial Array
;Outerloop
;Outerloop Using OuterInc Cascades The Entire Initial Array From Array 1 To Array 20, Array 2 to Array 20 etc.,
OuterInc:=2
FillPreviousInc:=1
Loop 20
{
StartPointFill:=OuterInc-OuterInc +1
;InnerLoop
Datax := Object()
IncIncrease:=OuterInc
Loop 20
{
;InnerLoopFill Creates An InnerLoop Using OuterInc To Fill In Gaps Created By Cascading The Initial Array
;If the Entire Initial Array gets displaced From Array 1 to Array 5 The InnerLoopLoop Fills Empty Values In Array 1 to 5 Using Values 1 to 5 From Initial Array
InnerLoopFill:=0
Loop %OuterInc%
{
InnerLoopFill++
Datax[InnerLoopFill] := data[InnerLoopFill]
}
;Copies Values From Array data[1] to Datax[2], data[2] to Datax[3] etc.
Datax[IncIncrease] := data[A_Index]
IncIncrease++
}
;Displays Created Cascade In Gui
x:=0
number:=0
YAxisInc:=12
StatusInc:=1
NumStatusInc:=1
Loop, 20
{
x++ ;Increments by - to create 40 to 60
y1:=Datax[x]
YAxis:=number += YAxisInc ;Increments by 12 to create a gap of 12 between numbers
Gui,Add,Text,x360 y%YAxis% , %x% %y1%
}
Gui, Show,x1609 y186 w500, XGraph
sleep 1000
OuterInc++
}
}
;msgbox %Value%
;MsgBox, % Min(data*)
;
;MsgBox, % Max(data*)