In my shotgun method of debugging once logic has failed I have entered some weird territory.
Code: Select all
[DidItMove]
Measure=Calc
Formula=(#LastX#<>#CURRENTCONFIGX#)||(#LastY#<>#CURRENTCONFIGY#)
IfAboveValue=0
IfAboveAction=[!Move #CURRENTCONFIGX# [StackPos] "Codger\WiFi"][!Move #CURRENTCONFIGX# [StackPos2] "Codger\IP"][!Move #CURRENTCONFIGX# [StackPos3] "Codger\Traffic"][!Move #CURRENTCONFIGX# [StackPos4] "Codger\CPU"][!Move #CURRENTCONFIGX# [StackPos5] "Codger\HardDriveBar\HardDriveUsageBarC"][!Move #CURRENTCONFIGX# [StackPos6] "Codger\HardDriveBar\HardDriveUsageBarJ"][!Move #CURRENTCONFIGX# [StackPos7] "Codger\HardDriveBar\HardDriveUsageBarE"][!Move #CURRENTCONFIGX# [StackPos8] "Codger\HardDriveBar\HardDriveUsageBarK"][!Move #CURRENTCONFIGX# [StackPos9] "Codger\HardDriveBar\HardDriveUsageBarD"][!Move #CURRENTCONFIGX# [StackPos10] "Codger\HardDriveBar\HardDriveUsageBarL"][!Move #CURRENTCONFIGX# [StackPos11] "Codger\Volume"][!SetVariable LastY #CURRENTCONFIGY#][!SetVariable LastX #CURRENTCONFIGX#][!UpdateMeasure "DidItMove"]
DynamicVariables=1
[Background]
Meter=Shape
Shape=Rectangle 0,0,(#BarWidth# + (#BackPadding#*2) + 1),#Height# | Fill Color #PureYellow#,120
;LeftMouseUpActionAction=[!refresh]
LeftMouseUpAction=[!SetVariable LastX #CURRENTCONFIGX#][!SetVariable LastY #CURRENTCONFIGY#][!Refresh]
DynamicVariables=1
;UpdateDivider=-1
The [StackPosx] routines just provide the Y start of the next skin. Those work fine. A single click on the bar lines everything up correctly. Refresh does the same.
here's the weird:
1. Drag it and it follows along only horizontally not vertically.
2. Remove '[!UpdateMeasure "DidItMove"]' and it stops doing even that even though the measure should update every second anyway.
3. Remove '[!SetVariable LastX #CURRENTCONFIGX#][!SetVariable LastY #CURRENTCONFIGY#]' from the mouse click routine and it stops working even though the following [!refresh] should reset those variables anyway.
Mostly I want to fix the not tracking on the Y problem but if you can offer insight on the other strangenesses I'd love that.