Cant get drive letter graphic to change states when I configure the perfmon2 to different drives,always shows default.
And...how do I make the widget configurable through the exported widgets properties?I went through the add preferences routine,but it would only show on a new widget with no other scripting.Once I added the rotate arm section it no longer showed a preference tab.
The widget works fine as long as it it set to just one capability and one drive letter(you can only choose from your OWN available drives,it needs to work on other folks setup)
heres what I got minus the Add preferences bit.....frustratingly yours...I.R. noBrainiac
'Called when the script is executed
Sub Object_OnScriptEnter
Call RotateArm(-90,58,50,"pointerplasma","text")
Object.SetTimer 1121, 5000
End Sub
Sub Object_OnTimer1121
Call RotateArm(-90,58,50,"pointerplasma","text")
End Sub
Sub RotateArm(minangle,maxangle,ZeroPercent,Obj,Mtr)
meter = DesktopX.Object(Mtr).Text
meter = mid(meter,5)
t = len(meter)
meter = left(meter,t-1)
If Invert = True Then meter = 100-meter
If meter < ZeroPercent Then
angle = minangle + (((360 - minangle) / ZeroPercent) * meter)
Else
angle = (maxangle / ZeroPercent) * (meter - ZeroPercent)
End If
DesktopX.Object(Obj).Rotation = angle
End Sub
Sub Object_OnTimer1121
DesktopX.Object("driveletter").State = what goes here?
End Sub
'Called when the script is terminated
Sub Object_OnScriptExit
End Sub