Scripting partner
I need a script buddy :)
Sunday, February 11, 2007 by ViperWorm | Discussion: Widget talk
It's not like I can't do any scripting at all, but I would need someone to help me with more complex scripts...
SO, everyone who helps me will be added in About sections of widgets, with links to their desired pages and similar

Basically, I will be eternally thankful to anyone willing to help me
If anyone is interested, please e-mail me to [email protected] ...
Hopefully someone will
Reply #2 Sunday, February 11, 2007 3:44 PM
I might be able to work with you.
Reply #3 Sunday, February 11, 2007 4:42 PM
Reply #4 Monday, February 12, 2007 3:11 AM

Now that I saw thomassens reply it became quite funny, because this particular object I need help with was inspired by his 'switch' which made a lot of people mad, but I found it to be a great inspiration for my object

I named this almost finished object LOCK-UP. As its name implies it can be used to lock any workstation with DX installed on it. It is very user-friendly, has few neat features and everything, BUT there are still some problems: right-click menu that can close the object, Task Manager - which can also be used to terminate DX, and start menu popping-out when win-key is pressed, that can't actually do anything to stop the LOCK-UP, but still it allows unwanted people to see your installed programs and similar...
What I need now is: a script that would disable right-click, a script that would somehow disable Task Manager and start menu form popping-out when win-key is pressed. I have some ideas how to do this,and they would probably work, but I don't seem to be able to create any useful scripts
If you are interested I can send you current version of LOCK-UP for a detailed preview of what I would need.
Reply #5 Monday, February 12, 2007 3:38 PM
Reply #6 Monday, February 12, 2007 5:01 PM
I'm still amazed how much attention that thing got. It was only made as an joke originating from a random conversation on #stardock...anyways; As SirSmiley says, DesktopX scripting doesn't provide any features to do what you are looking for. (Except being able to prevent the right click menu.)
Stardock sells DesktopX Enterprice which has a feature to lock down the desktop, so that's why you don't get those features in the DX script.
You'd have to rely on an external component to disable those features. Either an ActiveX control or a plugin. I don't know how to do plugins and I've not managed to wrap my head around ActiveX controls in C# yet.
I think such an external app could perform such a feature by making the system believe that the screensaver is running. I think I did a similar app like this in Visual Basic years ago. But that technique could have been a nasty hack, I'm not sure.
Reply #7 Monday, February 12, 2007 5:13 PM
Or just to start a script, when ctrl and del are pressed, which would refresh the main object and place him over the Task Manager?
Sounds doable to me from this point of view..
Reply #8 Monday, February 12, 2007 5:19 PM
hehe. don't mention this to Justin if it's in any way related to dah Switch!
I'm still amazed how much attention that thing got. It was only made as an joke originating from a random conversation on #stardock...Damn youuuuu!!!
Good times

Reply #9 Tuesday, February 13, 2007 5:45 PM
I'm anxious to see either I should keep working on LOCK-UP or just post it...
And one more question, is it possible to trigger a script with a key on keyboard?
Waiting for your replies.:.:.:.:.:.:....
Reply #10 Tuesday, February 13, 2007 6:46 PM
If you have permissions then yes.
Reply #11 Wednesday, February 14, 2007 7:54 AM
And could you throw in a little example of key-triggered script, so I can try to work something out
Reply #12 Wednesday, February 21, 2007 1:01 PM
I am trying to write a script for one of my widgets. I need it to, on command executed, start moving one of the object downwards until it gets to defined top=1000.
This is what I have now:
Sub Object_OnStateChange(state)
If state = "Command executed" Then
Object.SetTimer 90909, 10
End If
End Sub
Sub Object_OnTimer90909
DesktopX.Object("iKC_Arm_S").Top = DesktopX.Object("iKC_Arm_S").Top + 10
End Sub
Sub Object_OnTimer90909
If DesktopX.Object("iKC_Arm_S").Top > 1000 Then
Object.KillTimer 90909
End If
End Sub
This script won't move the object even for 1 px
The problem must be somewhere in last Sub, because If I delete it form script, it moves the object downwards.. That's cool, but it has to stop the object form moving outside my screen....
Please, If anyone knows what to do, post a reply
Reply #13 Wednesday, February 21, 2007 8:29 PM
Try this:
Sub Object_OnTimer90909
If DesktopX.Object("iKC_Arm_S").Top > 1000 Then
Object.KillTimer 90909
Else
DesktopX.Object("iKC_Arm_S").Top = DesktopX.Object("iKC_Arm_S").Top + 10
End If
End Sub
Reply #15 Monday, March 12, 2007 9:47 AM
I need it to be of fixed width and height. Layout on the picture above is as I would like it to be when the object is finished (number of buttons, their colors and dimensions are as they should be).
If anyone feels like helping me out, please send me *.dxpack on: [email protected]
I need this in order to finish a very cool project, so I'll really appreciate any help given (like tutorials

Reply #16 Saturday, April 7, 2007 2:06 PM
I tried to create a gauge that would rotate accordingly with CPU usage... So this is the script I wrote for it:
Sub Object_OnScriptEnter
Object.settimer 1234,100
End Sub
Sub Object_OnTimer1234
If Object.rotation < system.CpuActivity Then
Object.rotation = Object.rotation + 1
End If
If Object.rotation > system.CpuActivity Then
Object.rotation = Object.rotation - 1
End If
End Sub
And for some reason the object is perfectly still or twitching... I really cant' see where I made a mistake, I mean this script is pretty simple and straight-forward...
I would really appreciate any kind of help
Reply #17 Saturday, April 7, 2007 4:18 PM
Reply #18 Saturday, April 7, 2007 6:34 PM
- Sub Object_OnStateChange(state)
- If state = "Command executed" Then
- Object.SetTimer 90909, 10
- End If
- End Sub
- Sub Object_OnTimer90909
- DesktopX.Object("iKC_Arm_S").Top = DesktopX.Object("iKC_Arm_S").Top + 10
- End Sub
- Sub Object_OnTimer90909
- If DesktopX.Object("iKC_Arm_S").Top > 1000 Then
- Object.KillTimer 90909
- End If
- End Sub
This could be better simplified to:
Sub Object_OnStateChange(state)
If state = "Command executed" Then
Object.SetTimer 90909, 10
End If
End Sub
Sub Object_OnTimer90909
If DesktopX.Object("iKC_Arm_S").Top > 1000 Then
Object.KillTimer 90909
Else
DesktopX.Object("iKC_Arm_S").Top = DesktopX.Object("iKC_Arm_S").Top + 10
End Sub
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 Sunday, February 11, 2007 12:40 PM