[release] Scriptable Multimeter Docklet Beta

firstpictures.gif

This is a beta of my Object Dock only docklet - an YZ version is far away...

You can get it at albeiks new page. (See link below)

You can create your own scripts in vbScript, JavaScript etc.

Its main goal is shifting graphics around on the surface. Provided is a sample

script and images which demonstrate the basic techniques featuring the first

docklet clock with rotated .png hands. See AnalogClock.vbs.

The provided INI-Files are quite self explanatory.

It is far away from being perfect so I may ask you for patience; months may

pass until I find time to further improve it and add the most missing features:

- yz version

- a theme/script selection dialog

- context menu handling (See Menu.txt)

- click and double click handlers

- documentation

- more sample scripts

- script debugger awareness, editing and reloading capabilities

- sinking events from layers, for button style widgets

- MBM5 script object model

- Text and line output

Finally, this docklet fulfils a similar role as Judges admirable SysStat docklet.

Believe me that it was not released when I started development a few months

ago - otherwise I would have asked judge to incorporate active scripting support

into his docklet and offered help in doing so...

www.dockex.com

#96174

Thanks herd! :bow: It is very nice (Y)

The best thing is now that people with knowledge of vbcript can also "make" docklets :)

#96182

V. nice herd (Y) some class work...

@AndreasV: What you mean like you? :lol:

#96223

Woa! This could turn into a new samurize-like application :)

#96392

this is awesome! i think it would be a great idea to work together and maximize both projects!

#97074

It's excellent! :woot:

I love the concept, herd. :wub:

Keep up the good work! ^_^

#97095

For a long time, there was silence about the scriptable multimeter docklet.

Stay tuned for an update, it is almost ready; give me another 1-2 weeks.

New Features:

- Two more samples, one in jScript, one in Visual Basic 6.

(Anyone out there in Need of a Delphi sample?)

- Theme selection dialog that also shows up as property page in AveDesk RC1.

- Unicode - successfully popped up message box from script in japanese.

- Ini files can be unicode, too.

- Finally runs in YZDock

(Label still needs work)

- MBM5 support - enumerate and read temperatures and voltages in script by name.

- Mouse Actions are passed to script.

- Transparency of individual layers. (see below)

Upcoming work to do:

- Documentation on the script accesible object model.

- Context menu and user customizable variable/property handling

(means you can prepare your script to be configurable, e.g. no seconds hand in clock as a config dialog parameter)

Here, some teasers:

jScript Docklet in action on my laptop:

charge.PNG

note how the am/pm shines through, this is simply by making the

layer "watchbg" semi-transparent - a one liner in script.

and the same one under yz:

charge-yz.png

Due to a limitation in YZ, you can not place more than one in the dock.

Researching continues on how to run multiple scripts then.

Finally, I would like to ask the community to develop scripts, images or any other useful input as soon as beta 0.0.2 is released and place them either in this thread or at:

the Yahoo Group I opened for support and knowledge base for the MMDocklet.

Aqua-Softians are the best and they deserve the best I can give.

#109432

WOA!© That is so sexy again herd, can't wait to get it (Y)

Due to a limitation in YZ, you can not place more than one in the dock.

Researching continues on how to run multiple scripts then.

It is possible by copy/pasting the DLL file to run multiple of the same docklets in Y'zDock. I don't know if that would work with your COM-based docklet though.

#109435

Originally posted by AndreasV@Feb 3 2004, 01:04 PM

It is possible by copy/pasting the DLL file to run multiple of the same docklets in Y'zDock. I don't know if that would work with your COM-based docklet though.

Yeah, but they would all use the same ini- file and overwrite each others theme selection.

If this was Linux, I would recommend creating symlinks to the DLL and evaluate the GetModuleName() analogon. Something like that is in the make already.

Now its back again to Munich for some paid work - progress is slow given the fact that I can spend 8 hours per week at most on the subject.

#109436

Yeah, but they would all use the same ini- file and overwrite each others theme selection.

Y'zDock does have a set of functions that automatically creates an INI file based on the DLL file.

Otherwise, you can use the same INI-file, but base the sections on

TCHAR filename[MAX_PATH];
GetModuleFileName(GetModuleHandle(hInstanceDLL),filename,sizeof(filename)/sizeof(filename[0]));

Where hInstanceDLL is received by the Y'zDock OnInitialize() event.

#109437

Help:

I love this clock, but I can't get it to run. I did what you said and it didn't work.

Where should I put the MultiMeter.ocx and the DockletHost.dll files? Because the installation is not working, this is what I get:

C:\Program Files\Stardock\ObjectDock\Docklets\MMDocklet>regsvr32 /s MultiMeter.ocx

'regsvr32' is not recognized as an internal or external command, operable program or batch file.

C:\Program Files\Stardock\ObjectDock\Docklets\MMDocklet>regsvr32 /s DockletHost.dll

'regsvr32' is not recognized as an internal or external command, operable program or batch file.

Thanks and congratulations for this docklet.

#109767

Originally posted by lalfonsob@Feb 4 2004, 04:05 AM

'regsvr32' is not recognized as an internal or external command, operable program or batch file.

Interesting - I have never seen a post 95 Windows machine without it.

Win98: C:\Windows\System\RegSvr32.exe

WinNT4: C:\Winnt\System32\RegSvr32.exe

Win2000: C:\Winnt\System32\RegSvr32.exe

WinXP: C:\Windows\System32\RegSvr32.exe

Seems like your PATH environment variable does not point to one of the

above directories. Locate RegSvr32.exe, copy it into the same folder as the batch file and try again.

However, if :

- your Administrator denies you access to the System folder

- your Virus Scanner shields you from registering components

- your Windows installation misses that and other relevant files

- your Windows session is in fact a Windows Terminal server or Citrix client

Then I can not help you that easily - ask your Admin or nearest whiz kid.

This convinces me to provide a real installer/uninstaller for the next beta release.

HTH,

herd

PS: I never tested it on Systems other than 2000 and XP - does it work there?

#109847

Thanks for replaying herd! And sorry for all these quotations but I want to let you know all the info about my system.

Seems like your PATH environment variable does not point to one of the

above directories. Locate RegSvr32.exe, copy it into the same folder as the batch file and try again.

I will try that tonight.

- your Administrator denies you access to the System folder

I’m running in an Administrator account.

- your Virus Scanner shields you from registering components

I don’t think so.

- your Windows installation misses that and other relevant files

Not sure but I don't think I have that file missing.

- your Windows session is in fact a Windows Terminal server or Citrix client

Nope.

Then I can not help you that easily - ask your Admin or nearest whiz kid.

This convinces me to provide a real installer/uninstaller for the next beta release.

I’m the admin and I know about computers and I tried to put them in the system32 folder but that didn't work. That’s why I was asking you, where should I put those files? :(

PS: I never tested it on Systems other than 2000 and XP - does it work there?

I tried to use with AveDesk in my work computer (Windows 2000) and it shows me a C++ error.

Microsoft Visual C + + Debug Library

Debug Assertion Failed!

Program: C:\Program Files\AveDesk\AveDesk.exe

File: d:\programme\Microsoft visual studio\vc98\include\atlbase.h

Line: 622

Expression: p!=0

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

I’m a power user, I think!

#109920

Originally posted by lalfonsob@Feb 4 2004, 04:00 PM

a.

I’m the admin and I know about computers and I tried to put them in the system32 folder but that didn't work. That’s why I was asking you, where should I put those files? :(

b.

I tried to use with AveDesk in my work computer (Windows 2000) and it shows me a C++ error.

c.

I’m a power user, I think!

No offence meant.

@a. DockletHost.dll must remain in

C:\Program Files\Stardock\Docklets\MMDocklet\

otherwise ObjectDock won't recognize it as a Docklet.

Where you put Multimeter.ocx is actually irrelevant as long as you register it with

RegSvr32 to the Registry. Of course, the Themes directory, its subfolders

and all other files need to be in the above said folder, otherwise the INI files

won't work.

@b. This release only works with AveDesk_RC1.exe, I accidentally forgot to

initialize the COM library, which I guess is the reason for the error box you

received. AndreasV fixed the issue and became more OD compliant with RC1.

@a. + @c. Dumb me, :banging: I prejudice anyone to be either teenage

or savaged by BOFH kind of admins. Sorry.

#110027

No offence meant.

No offence taken. :D

@a. + @c. Dumb me, I prejudice anyone to be either teenage

or savaged by BOFH kind of admins. Sorry.

That's fine.

Ok I got it running. I did what you told me, I copied the regsvr32.exe o the docklet folder and it works now! Thanks for your help. If you need any help translating anything to spanish for the spanish users just tell me. Maybe a tutorial or a guide.

(Y) Thanks and Good Luck with the next release. (Y)

#110294

Thank you. I will keep that in mind. By any chance, you may know the spanish site www.macthink.net - there was a small thread about MMDocklet.

I would like you to take care of them and if there is anyone having trouble,

your translation will be welcome in this thread. :)

#110852

Yes I will. I know that site I spend some time there so I will answer any question if I know the answer.

Thanks. (Y)

#112245

Just to let everyone know there is a new release available that works in Avedesk, Objectdock AND Y'z Dock....

Get it here

#136381

does anyone else have problems with the album covers crashing when there isn't an internet connection

for example when i'm not online but there are album art covers it works fine but as soon as it reaches a song w/out an album cover my whole computer becomes slow

i know this is beta but i was wondering if there was a quick fix because I really love this widget

#199504

Multimeter album art reuses a Samurize plugin as you may know since

you got it to work.

Locate AdvancedMediaPlayerInfo.opt

(mostly in C:\Program Files\Samurize\plugins)

and verify that:

autodownload_byalbum = 0

autodownload_bytitle = 0

are both = 0 and not = 1. If they aren't there, add them.

Otherwise the plugin will try to download a cover that it does not have

regardless if an internet connection is there.

hth,

herd

#200199