I'm having problems with combining two variables & displaying them.
They initially show up in the gui but when I alter them using GuiControl, it only displays the 1st variable, not sure why ...
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
NotShown := True ;gui has not yet been shown
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
{
;Copies Values From Array data[1] to Datax[2], data[2] to Datax[3] etc.
xs1:=data[A_Index]
xs=Apple %xs1%
data[A_Index]:=xs
Datax[IncIncrease] := data[A_Index]
IncIncrease++
;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 InnerLoop 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]
}
}
;Displays Created Cascade In Gui
x:=0
number:=0
YAxisInc:=12
StatusInc:=1
NumStatusInc:=1
First:=!First++
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
IF NotShown
Gui,Add,Text,x360 y%YAxis% vY%YAxis%, %x% %y1%
Else
GuiControl,, Y%YAxis%, %x% %y1%
Sleep, 200
}
If NotShown
Gui, Show,x1609 y186 w500, XGraph,% NotShown := False
OuterInc++
}
}
esc::
{
sleep 100
Send {LControl down}
sleep 100
Send {s}
sleep 100
Send {LControl up}
Reload
}
Return