Hey pcm,
I'm not really sure how the DeskletFadeIn/Out functions work. Any leads on how to implement them in the HideDesklet() function?
Thanks in advance!
Hey pcm,
I'm not really sure how the DeskletFadeIn/Out functions work. Any leads on how to implement them in the HideDesklet() function?
Thanks in advance!
Replace the hidedesklet to be like this:
function HideDesklet()
{
Visible = 1;
DeskletFadeout(false,500)
Visible = 0;
}
Well... that was simple enough. Thanks pcm. You've gotta be one of the coolest coders ever (along side Andreas that is...
).
I really like this one. Great work.
Hey pcm excellent desklet, i have only but one question, the desklet works fine, however, a slight imperfection or maybe misunderstanding on my part, when i log into compauter and all the stuff on my machine loads in, ie. ,taskbar. systray icons, R k launcher and Avedesk, i have 3 desklets running in avedesk, one is a drive shortcut to my hardive which is visible all times and another drive docklet for my dvd drive which is only visible when a dvd is in drive and then there is your desklet which runs perfect, but for a slight second when desklets are being loaded when avedesk is run the OSX volume volume desklet appears for a slight second(to show its been loaded in) and then becomes invisible as normal only to be activated when i press the volume buttons. Is there anyway of not showing osx desklet has been loaded and to keep it complety invisible until the volume is changed?, or basically is there anyway to load the desklet in completly in the backround invisible?
Sorry about this double post a slight mistake, if theres any mods floating about, please accept my Apologies, you can delete the post prior to this one.
I'll look into that. I originally did that because of a bug I had with avedesk with invisible desklets. But I think I can get do it another way.
Rite possible bug, when i loadup skype it displays the osx volume then fades outs, this only happens when skype loads up then when u try to dial a contact it happens again, displays the volume and fades out, doesnt change the volume, just displays it everytime u dial a new contact on skype?
Anyone else experiencing this?
Mute button doesn't really work properly with OSX Volume.
Ive got a Microsoft Wireless Keyboard and pressing Mute just brings up the desklet but doesnt do anything.
Rite possible bug, when i loadup skype it displays the osx volume then fades outs, this only happens when skype loads up then when u try to dial a contact it happens again, displays the volume and fades out, doesnt change the volume, just displays it everytime u dial a new contact on skype?Anyone else experiencing this?
Probably sloppy coding from Skype's side: they are changing the volume on loadup, dial etc.
Mute button doesn't really work properly with OSX Volume.Ive got a Microsoft Wireless Keyboard and pressing Mute just brings up the desklet but doesnt do anything.
Just the mute button?
If so, try to delete the hotkey bound the mute command.
In the XML file
-
Just rename the workd hotkey to hotkeyD. That will remove the hotkey to the mute button. There might be a "double".
I'm not sure, but if you got another software that already Binds the hotkeys, you might be triggering the item TWICE. So that seems to do nothing, but infact it toggles off then on right away.
If you got another software handling the hotkeys for the keyboard, you might want to disable each one.
Stuff will still work.
Also,
The sound display is triggered everytime you modify the volume. So if you got another 3rd party tool that updates the volume or Skype it will display it.
I could very easly modify the code to only trigger when the buttons are actually pressed.
Which probably is a better thing to do.
Thanks pcm for the tip, worked a charm!
I think it was probably some plugin in Winamp that caused the Mute to 'double up'.
Thanks again. ![]()
I could very easly modify the code to only trigger when the buttons are actually pressed.Which probably is a better thing to do.
pcm I actually prefer the way it currently handles changes in volume. It means that it works regardless of the method you use to adjust the main volume unlike some other volume displays. Personally I'm so used to using volumouse now I use my keyboard less and this desklet, as it currently is, works great regardless. I think it's global hook works well in all situations.
EDIT: just anyother suggestion which I'm guess can't be implement at it currently stands. When the volume is at 0 and you press down on the volume control would it be possible for the desklet to pop up. At the moment at 0 it won't. would be useful just as an indicator. not mission critical though.
yes it would be possible to make it popup, if the "hotkey" is pressed. But the "hook" doesn't get triggered if its at 0 and you try to go down.
Can very easly modify the hotkey to catch if volume goes down and is already at 0 then show it.
It will have to wait a couple of days.. in the middle of system rebuild. Issues with system and stupid move doing system restore.
Thanks for this great release! Another tray icon gone ![]()
Nice work, pcm, but i've been wondering... Is there any way to assign other keys or key combinations to work as the hotkey for vol up and vol down?
I've been using CTRL+Up arrow and CTRL+Down arrow (a quirkiness of mine) to turn up and down volume, and i was hoping that there could be any way that these key combinations could be used for this desklet...
Cause i've been playing around with this thing and if that problem is solved then i can chuck macsound (4,600KBs of mem....) out of the process list and be happy for the rest of my life... ![]()
Until i get a dual booting macbookpro that is... ![]()
Once again, nice work!
oh ya.. I love easy questions, makes me feel smart ![]()
You want to change the xml hot keys to be something like this:
Either add it to the current hotkeys or replace them.
Sweet... Tried it out and voila! Bye, bye 3mb of ram eating MacSound... ![]()
I'm curious by the way, is there any way to bind a sound to the VolumeUp and VolumeDown action, for instance, a simple beep to indicate just how loud four bars on the indicator sounds like... Just curious is it can be done... ![]()
Again, thanks a million! ![]()
Yes it can be done to bind a sound.
I didn't do it, since I needed to find a "good" sound. But you can by just
add the following in the updatedisplay() function.
desklet.MultiMedia('tick.wav',1);
tick.wav is the filename of the wave file, you could use the clock tick, it works
Wonderful!! Thanx a lot!! ![]()
Wow... this thing just keeps getting better and better. Keep up the great work pcm. ![]()
Woah, nice... Thanks dude...
About the sound thing, what file do i need to modify again? The VBS script or the XML file? And where should i place the "tick.wav" (or whatever else) file? In the desklet directory?
Now i'm starting to sound pushy... Man, sorry dude...
Again, congrats on the creation of one of the most useful avescripter desklet on earth! ![]()
You place the code in the updatedisplay() function in the .js script.
The tick.wav file - I put it in the desklet folder, but I'm guessing that you might be able to put it anywhere listed by PATH. pcm - am I right on this?
yes...
If no path is supplied, avescripter will autofill the path with the resource directory of the desklet. So if you put a hardcoded path it will work. You can also use variable paths, example %MYDOCUMENTS% etc..
Sweetness... Thanks people... ![]()
Hey PCM thanx for supplying the adding a sound to the desklet code, ive added it and it works a treat. As before it still loads the desklet with avedesk at the start for a split second, since i added the sound code, it also produces the sound aswell when the desklet appears, have u figured out a away i can sort this out?
Anyone interested in a sound to add to the desklet can use this one, its has a cool blip sound ideal for this desklet