Scripting Q

Monday, September 6, 2004 by ma3lstr0m | Discussion: WinCustomize Talk

So I have a plugin that gets info from a certain application.
I want to use a script that updates this every second.
Was wondering how the code should be like.
Thanks in advance
ma3lstr0m
Reply #1 Monday, September 6, 2004 6:22 PM
Oh this is for DesktopX btw
Hus
Reply #2 Monday, September 6, 2004 6:26 PM
Sub Object_OnScriptEnter
Object.SetTimer 1,60000
Object_OnTimer1
End Sub

Sub Object_OnTimer1
'code goes here
End Sub
ma3lstr0m
Reply #3 Monday, September 6, 2004 6:46 PM
how I would "refresh" the the object? like run the dll..
thx
ma3lstr0m
Reply #4 Monday, September 6, 2004 6:53 PM
Right now I have an object using the DXWinAMPInfo.dll plugin. But the object does not "refresh" so to speak so you never see the info until u go into properties and click ok in which it refreshes. Trying to get a script that checks everysecond or at least change when song changes so the info is correct. Using DesktopX 2.0.
Hus
Reply #5 Monday, September 6, 2004 7:19 PM
Ok, I'm not really good at scripting in DX, I only know the very basics of it. I also know that DX2.0 is old news, and you should definately be using DX2.2. The amount of changes since 2.0 is staggering. Try the new version...and maybe it will work better. Sorry I can't offer any more advice on the scripting...
ma3lstr0m
Reply #6 Tuesday, September 7, 2004 12:36 AM
np, thx for the help.
Hm I only have full version of desktopx 2.0 tho...I would try 2.2 but I would have to get the free version. Not really interested in getting the little popup screen every time I log into account
Kevin_C
Reply #7 Tuesday, September 7, 2004 7:15 AM
Well, if DXWinAMPInfo.dll is an automation Dll, in other words an ActiveX Dll then you can instantiate it and use the methods on the object to do the work you are wanting to do. It would be something like:

Dim myObj
Set myObj = CreateObject("DXWinAMPInfo")

and then you could call methods with:

myObj.getSomething
myObj.setSomething

etc..

HTH, it's probably not exactly right but should give you enough to get started.

Good Luck!
paxx
Reply #8 Tuesday, September 7, 2004 8:45 AM

ma3lstr0m: if you have purchased DesktopX 2.0, you get all the updates for free until version 3.0

Just enter your email address on this page: https://www.stardock.com/support.asp and a link to download the latest release will be emailed to you.

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!



web-wc01