Need script help for state = and drive letter config ina DX widget
Saturday, May 6, 2006 by I.R. Brainiac | Discussion: DesktopX
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
Reply #2 Saturday, May 6, 2006 12:33 PM

Reply #3 Sunday, May 7, 2006 12:48 PM
Reply #4 Sunday, May 7, 2006 4:16 PM
If you send it to me I might be able to help? Might not
My email is on this page http://skarnivorous.wincustomize.com/info.aspx?acid=387257Reply #5 Sunday, May 7, 2006 11:48 PM
Skarnivorous,thanks for the offer...I uploaded it as is in the widget section.If you feel like playing with it,please do,I'll be offline soon fo awhile(again).

Reply #6 Sunday, May 7, 2006 11:51 PM

Reply #7 Tuesday, May 9, 2006 6:19 AM
But this is what you wanted. Click the main meter to change to the next available drive on your computer. P.S. You need to check your alignment of your meter numbers. As you go from 0 to 100, they shift further right, and get incorrectly positioned.
http://www.freewebtown.com/skarn/edited.dxpack
Reply #8 Tuesday, May 9, 2006 8:47 AM
Maybe I can get it done before I have to leave.(again)
Thanks for taking the time.

Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Saturday, May 6, 2006 9:39 AM
look at "what goes here" in State =