Aqua-Soft Forums: [release] Sound Volume - Aqua-Soft Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

[release] Sound Volume Rate Topic: -----

#1 User is offline   RIMMER Icon

  • Group: Member
  • Posts: 470
  • Joined: 25-January 04

Posted 29 January 2006 - 09:46 PM

Set your system sound volume with AveDesk and this desklet. A direct port of Dashboard widget by Natan Heagy (and I'm fully permitted to do so!)

Posted Image
Download @ avedesk.philc.ca (~93 KB)


Please, note (online readme):
1) This is a very rough approach to sound volume regulator. Though it works, it uses a very dirty way to set your system sound volume. This is not dangerous in any way, but you might not like this. I'll change the way I do it as soon as I learn more of Windows MultiMedia subsystem.
2) HOW TO MOVE THIS DESKLET ACROSS YOUR DESKTOP? Because of trackbar implemented you are not able to just drag this desklet. To move it, hold the Ctrl key and drag.
3) This is a direct port of Dashboard widget with the same name made by Natan Heagy. I was pretty intoxicated with this fascinating idea and asked for a permission to port it. And - guess what? - I've got it! Natan kindly permitted me to use the original graphics from his widget. I had to cut and paste a bit, but current version should look quite the same as its Dashboard brother.
4) Your ratings at AveDesk site are HIGHLY APPRECIATED and ANTICIPATED! Please look for textual link with the words "Rate Resource" beneath the desklet information and USE IT!


Have a nice volume!
0

#2 User is offline   verbalhijacker Icon

  • Group: Member
  • Posts: 162
  • Joined: 11-July 05

Posted 29 January 2006 - 09:55 PM

nice, thankyou
0

#3 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 29 January 2006 - 10:21 PM

Nice. :)

Sure, it's a little dirty but, prefer this to the OD Volume Docklet that I've been using.
0

#4 User is offline   nightcrawler1089 Icon

  • Group: Administrators
  • Posts: 7,909
  • Joined: 26-February 04

Posted 29 January 2006 - 11:33 PM

Nice desklet ;). Having some problems dragging it for a long period of time, but I'm not sure exactly what the problem is...

My suggestion for the muting behavior is to have the bottom button mute and turn yellow, and then the top speaker button would undo this (instead of having to press the bottom button twice).
Does that make sense? :P

Good job!
-NC

P.S: Added my rating.
0

#5 User is offline   AndreasV Icon

  • Group: Developers
  • Posts: 2,137
  • Joined: 22-November 03

Posted 29 January 2006 - 11:37 PM

Wow, this is so cooooool :D

a) cool you found out how to use the RegisterCOMServer in the aveinstaller using an alias :-)
B) AveDesk and AveScripter are able to capture the mouse for a certain layer. Effectively, that means with
layerA.SetCapture() you capture all mouse-input to layerA.With layerA.ReleaseCapture() you undo the previously set capture.
Basically, capturing the mouse with SetCapture() for layerA means that all mouse events are sent to layerA, no matter where they occur: mouse-over a different layer -> you still get the input with the coordinates relative to layerA (e.g. you get negative Y coords if the mouse is above layerA). Even when the mouse leaves the desklet and enters another window, you will still get the mouse-events, until ReleaseCapture() has been called again.

Making sliders is pretty easy while you capture the mouse:
var bMouseDown = false;

var grabbedY = 0;

function onmousedown()

{

   this.layers("slider").SetCapture();

   bMouseDown = true;

   grabbedY = this.GetMouseYPos();

}



function onmouseup()

{

   this.layers("slider").ReleaseCapture();

   bMouseDown = false;

}



function onmousemove()

{

   if(bMouseDown)

   {

	  var relY = this.layers("slider").Y  + this.GetMouseYPos();

	  var newY = relY - grabbedY;

	  newY = max(0, UPPERBOUND);

	  this.layers("sliders").Y = newY + STARTY;

  }

}


EDIT:
c) The proper way to do animations is using Math.sin() and timers :) [it'll look smoother]
var counter = 0;

var MAXFRAMES = 100;

ontimer()

{

 var ratio = Math.sin( counter / MAXFRAMES * Math.PI / 2.0);

 var newValue = ratio * finalValue;

  if(counter == MAXFRAMES)

  {

	timer.StopTimer();

	counter = 0;

  }

}



onStartAnim()

{

   timer.StopTimer(); // in case it's already running

   finalValue = 255; // some random value

   timer.ResetTimer();

}


:) Just some nice hints.
0

#6 User is offline   Tricky Icon

  • Group: Subscribers
  • Posts: 1,343
  • Joined: 10-November 03

Posted 29 January 2006 - 11:43 PM

Thanks Rimmer - been wanting something like this for AveDesk for a while
0

#7 User is offline   bh2 Icon

  • Group: Member
  • Posts: 2,964
  • Joined: 08-October 03

Posted 30 January 2006 - 12:08 AM

ooh!...nice!
0

#8 User is offline   killaart Icon

  • Group: Member
  • Posts: 194
  • Joined: 22-October 03

Posted 30 January 2006 - 07:01 PM

it crashes my avedesk sometimes
0

#9 User is offline   RIMMER Icon

  • Group: Member
  • Posts: 470
  • Joined: 25-January 04

Posted 30 January 2006 - 08:37 PM

2 killaart: AveScripter widgets are known to crash AveDesk sometimes. Can you describe what goes on when a crash occurs?

2 AVe: Thank you, I'll try. Anyway, this is a first approach :)
0

#10 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 30 January 2006 - 09:31 PM

RIMMER said:

2 killaart: AveScripter widgets are known to crash AveDesk sometimes. Can you describe what goes on when a crash occurs?

2 AVe: Thank you, I'll try. Anyway, this is a first approach :)


What you mean it's known!!!! What crashs have you received?

If it crashes I need to know, I can't fix it if I'm not aware of it.

:mad:
0

#11 User is offline   killaart Icon

  • Group: Member
  • Posts: 194
  • Joined: 22-October 03

Posted 30 January 2006 - 10:12 PM

uhm...dunno yet...but i'll stay focused on it.


update:

looks like this one doesn't like to be in showcase....happens when i open up showcase with my shortcut (f9) default i think
0

#12 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 30 January 2006 - 10:34 PM

Works in showcase for me, but I'm using the beta version.

What version are you using?
0

#13 User is offline   RIMMER Icon

  • Group: Member
  • Posts: 470
  • Joined: 25-January 04

Posted 31 January 2006 - 07:40 AM

Yeah, pcm, you've been said once, I said you: AveScripter desklets dont like turning on the ShowCase, it is described in Bug Thread. Fortunately, the xx.1.16 beta is allright, I never had this bug here. Non-beta users might still have it.

2 killaart: Try the AveScripter engine beta from avedesk.philc.ca (you'll have to register and log on there to be able to download it). It seems to be quite stable.

2 everyone who dislikes current thumb drag style: it will be fixed soon. In the mean time try clicking anywhere on the scale, you gonna like it.
0

#14 User is offline   killaart Icon

  • Group: Member
  • Posts: 194
  • Joined: 22-October 03

Posted 31 January 2006 - 08:53 AM

*sigh* i had the oldest version of avescripter....now 1.0.1.0 ...and testing :D



update: hm...maybe this helps....crashes with this version also...its not that big problem guys...i just wanna help u....i could live without this one ;) but its so cool.

okay...just had the same problem, while i had word maximized and hit f9 (showcase), then the screen flickers and avedesk is shutted down...
0

#15 User is offline   RIMMER Icon

  • Group: Member
  • Posts: 470
  • Joined: 25-January 04

Posted 31 January 2006 - 11:11 AM

I repeat, try LATEST BETA!!! Not even update, but beta! Register, logon, go to downloads and notice the new last section. Go there and take it. I had the same problem with earlier versions, now it's okay.

2 AndreasV

Quote

) cool you found out how to use the RegisterCOMServer in the aveinstaller using an alias :-)

Can i do it without alias? Seems like I can not.
____________________________________________
OK, trackbar implemetation CORRECTED and should work fine. It is now more like Windows standard track bar control. Please excuse me everyone for having you to redownload this package from avedesk.philc.ca: http://avedesk.philc.ca/modules/PDdownload...p?cid=10&lid=60. All my thanks to Andreas again!


And visit this forum branch oftenly! New amazing thing is soon to come!
0

#16 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 31 January 2006 - 03:14 PM

Yes, the latest beta in avescript has fixed a MAJOR problem with threading. This would cause issues with hyperthreading cpus. That was fixed. This is what rimmer is talking about that was very buggy.

I should, be releasing the next version or final beta by the end of february! Most notable new feature will be activexforms. You'll be able to put IE, Flash, Media Player, QuickTime, excel and yes.. even Mozilaa browser. Basically, most stuff that have a activexform.
0

#17 User is offline   Dave L Icon

  • Group: Member
  • Posts: 59
  • Joined: 01-November 04

Posted 06 February 2006 - 07:46 PM

Hi. I put this on my other computer and it worked fine but when I put it on my other one all I get is a stretched out question mark. Any ideas on how to fix it I have the latest beta version of Avescripter installed. Thanks.:)
0

#18 User is offline   RIMMER Icon

  • Group: Member
  • Posts: 470
  • Joined: 25-January 04

Posted 07 February 2006 - 07:45 AM

You must have installed Sound Volume from aveinst package properly on that machine to have it working. Not just copied! It registers an ActiveX object and uses it for work. This usually happens automatically, if you install a widget, but when it is just copied, you must do it on your own. So, just install it.

Then, if installation went fine but problem still remains, please, go to widget properties and look through the AveScripter tab. There must be Error log, copy it and paste here.
0

#19 User is offline   Dave L Icon

  • Group: Member
  • Posts: 59
  • Joined: 01-November 04

Posted 07 February 2006 - 10:14 PM

I registered the dll and it worked. Thanks!:)
0

#20 User is offline   rokile Icon

  • Group: Member
  • Posts: 3
  • Joined: 27-December 05

Posted 25 March 2006 - 08:49 AM

just need
thx man
0

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic