ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Idea: Invert Volume

<< < (3/3)

skwire:
Does it really make sense to you, how does the computer know how to interpret one code differently?-abent professor (September 14, 2009, 05:22 AM)
--- End quote ---

Yes, it does, since it's handled by the HID API.

r0bertdenir0:
Wat about a cheat...
Let's say only this dial is changing the master volume.
Now what if you had a AHK script startup & save the current master volume as a baseline.
Then watch for the VKAF code. But let the default keyboard handler adjust volume.
Then compare new volume against previous volume & that difference is yr inversion value.
So if yr baseline is 50, and you adjust the volume to 70, take the difference of 20 & turn yr 50 to 30.
The set 30 as yr new baseline.
Voila inversion!

This could get ugly if the volume change is not low level & AHK gets the scancode b4 the default handler. Then you'd need a timer delay. But that's unlikely since this is probably driver behaviour & also if you turn off AHK's keyboard hook so it gets events last.

I also suspect this wud have a strange sound effect when you turn the dial continuously as the volume would see-saw between what Windows & you're trying 2 do with the volume :D  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version