[request]hide Docket,opens On Click Of Other Docke

ok, im sorry for not knowing a better way to ask, i just got out of work, and am some what beat. this is what im trying to do. i took the weather expended thingy for systats, and made a none extended version(i guess u would call it "normal"). so what i would like is to make this as functional as the konfab version.

i was thinking can u have a the expanded version open up on click of the normal version. then u would get all the info. maybe ave can wip someting up that will make a docket hide on comand.

ok guys start brainstorming. ;)

#199060

Save this in a VBS file:

' hides a desklet
Dim av
set av = CreateObject("AveDesk.Application")

Dim d
for each d in av.runningdesklets
   if d.Label = "Caption of the desklet you want to hide" then
       d.visible = false
   end if
next

#199141

Any way to write that so if you click on it again and its hidden it will come back.

#199144

Sure,

' toggles a desklets visibility
Dim av
set av = CreateObject("AveDesk.Application")

Dim d
for each d in av.runningdesklets
  if d.Label = "Caption of the desklet you want to toggle the visibility" then
      d.visible = not d.visible
  end if
next

#199149

thanks ave

#199150

now a script to hide one and show another? this would work for the weather expanded to collapse it.

sorry might not work they both have the same caption..

#199151

Originally posted by AndreasV@Aug 6 2004, 12:40 PM

Save this in a VBS file:

' hides a desklet
Dim av
set av = CreateObject("AveDesk.Application")

Dim d
for each d in av.runningdesklets
   if d.Label = "Caption of the desklet you want to hide" then
       d.visible = false
   end if
next

<{POST_SNAPBACK}>

That's great! But with this code, the desklet is suposed to keep running hidden. Wouldn't be better a way to select a new systats config with some kind of JS script?

This way, we could make two sysstats configs, the small one & the big one, and beeing able to switch between them with a click...

...Just a thought!

B.

#199156

ya B-sided that would be a great idea.

#199158

Ya switching would be nice, because I was wondering, wouldn't having two configs running [hidden or not] mean that 'essentially' our computers are accessing weather.com's website twice as much? I might be paranoid, but I thought they wanted us to limit the times we accessed ;-)

#199184

Anyway to access SysStats' objects with an external script?

#199388

Originally posted by mimeryme@Aug 6 2004, 11:38 PM

Anyway to access SysStats' objects with an external script?

<{POST_SNAPBACK}>

Unfortunately, no.

With AveDesk 1.2 and hopefully an upcoming version of SysStats,

this will be possible in both directions.

To day, you can access the AveDesk object model from an SysStats script

like it was an external one, but since the SysStats object model doesn't tell

you which Window Handle it is hosted in, you can't 100% guarantee to pick

its 'enveloping' Desklet object correctly from the collection of running desklets.

And, you can't distinguish in an SysStats script if you are running inside

ObjectDock or AveDesk, so blindly accessing its object model would launch

AveDesk what might be undesirable if your config runs in ObjectDock.

hth,

herd

#199404