First Docklet Help

Hi,

I'm attempting my first docklet and I'm confused...

What I'm hoping to do is have it toggle between two images, based on the name of a file in a specific directory.

The file's name is toggled by another process and this would let me keep an eye on it.

Alternately, I could have the other process 'call' the docklet directly to set the image.

Is there a tutorial beyond the help? I'm new to Windows programming so I'm starting from scratch...

Thanks!

#488243

My approach (FWIW!) would be to include a script (either Windows Script or Java script) in the docklet that watches your "specific file in a specific directory" and sets the image accordingly.

The SysStats environment is powerful enough to fancy this up, later-on, to the point where the file & image locations/names should be able to be set from the docklet.

If that doesn't make any sense to you then the best thing to do is to explore the docklet libraries for something that vaguely resembles what you want to do and extract the relevant parts.

Often the authors of the docklets are contactable & approachable for advice.

#488339

SysStats let's you use scripts to make your docklet.

You may use that or C/C++ plus SDK, or even another win32 language such as Delphi. I don't know if you can do a docklet in .NET.

So:

  • What programming language are you going to attempt? (SysStats script?, C/C++?, other?)
  • Are you developing a docklet compatible with ObjectDock or YzDock (they use different systems).

Don't hesitate to post any questions and doubts that you come with.

#488376

Thanks for the replies so far.

I was hoping to do this for ObjectDock, and using 'plain' sysstats stuff if possible.

I have a couple of simple VBS and Batch file scripts which already tweak an icon on my desktop to do what I want. They switch an icon on the desktop to basically reflect on and off.

What I want is to be able to move this to ObjectDock. Given that I knew how to change the desktop icon, I thought I might be able to easily switch an ObjectDock icon, but swapping the images out from under the dock doesn't seem to work.

I'm fairly sure I can power through this by reading other examples and all, but I'm still a bit stuck getting the 'mental model' of how systats works in my head.

Perhaps one of you can point me to an existing script that loads an icon/image based on a value somewhere? I know that this is basically what the various CPU meters etc. do but I've been unable to 'get' how they work so far.

Thanks again,

Carlos

#488389

I'm having the problem with systats the gmail docklet by Judge hides the badge and count when it is zero I'm trying to do the same thing with Yahoo but it still displays the badge and count even at zero.

#488390

I have a couple of simple VBS and Batch file scripts which already tweak an icon on my desktop to do what I want. They switch an icon on the desktop to basically reflect on and off.

What I want is to be able to move this to ObjectDock. Given that I knew how to change the desktop icon, I thought I might be able to easily switch an ObjectDock icon, but swapping the images out from under the dock doesn't seem to work.

I'm fairly sure I can power through this by reading other examples and all, but I'm still a bit stuck getting the 'mental model' of how systats works in my head.

Perhaps one of you can point me to an existing script that loads an icon/image based on a value somewhere?

Yes, it takes a while to 'get' it ;).

The way I think of it is that SysStats is an extension to OD that provides an 'environment' to create docklets and then execute them within it. It has a set of methods & data structures that you can access via scripts and ready made items (meters etc) that have a pre-defined way of working and which interact with the graphic displayed by OD.

For a simple image handing script look at the ItalianClock. The clock hands are just PNG/BMP files that are rotated every second/minute/hour etc.

You sound like you're close with your existing script...

HTH.

#488549