DesktopX 2.0 Enhanced Q

I was wondering is it possible to set an object to refresh for a certain time interval and if so how can I achieve this?
Thanks in advance.
1,139 views 7 replies
Reply #2 Top

No problem. 

Now by refresh, what do you mean?

Reply #3 Top
like for example...a clock that has seconds, right now it's static so the image is fixed
I want it to change/update every second ...is this possible in 2.0?
Reply #4 Top

Sure.  But in your clock example you're doing too much work. There's already a clock plugin.

Just go to the "additional abilities" area on the general page and then select the clock plugin.

Now, in script, the way you would update something every second would be like this:

Sub Object_OnScriptEnter

Object.SetTimer 123,1000

End Sub

SetTimer has two paramters. The first one is the timer name and the second one is the time in MS that itshould get called.

So then you would create:

Sub Object_OnTimer123

Object.SetText (stuff here)

End Sub 

but on clocks, you would just use the built in plugins for that.

Reply #5 Top
Hmm maybe you are using a version higher than 2.0?
Cuz there is no "additional abilities" on general page.
There is a general plugin thing that I can choosea dll from but don't think that's right.
The thing is, the clock gets the right info, it just doesn't update every second...it only updates when I right-click then go into properties and click ok...only then it will refresh.
Thanks for the help so far.
Reply #6 Top

Yes, that's the thing I'm takling about.  Make sure you download 2.2 btw from www.desktopx.net

Just pick the clock you want.

Reply #7 Top
ok so I'm guessing I need to update to 2.2 to have a clock or any other object that changes to refresh properly for the right clock dll file.
When I select DXDigitalClock.dll or a similar dll for general plugin it says it's a drawing plugin and not a general purpose plugin. I'm guessing this is for the plugin in Appearance in the States tab.