Main > Main Forum
pots to volume ?
<< < (2/2)
ntk:

--- Quote from: bkenobi on December 06, 2010, 11:10:58 pm ---If the apac output shows up as a joystick axis (which I believe it does), then you can use a script to convert joystick axis position to discrete volume setting.

--- End quote ---

yes it shows joystick axis

but the problem i have no idea how to make a script :banghead: and also I could not find any software or Script that can do such a thing, so if someone know how and can help me.... I really appreciate it

thanks
bkenobi:
AHK or AI can do this easily.  In fact, there may even be something written and posted on their forums.

http://www.autohotkey.com/
http://www.autoitscript.com/autoit3/index.shtml

I'm a AHK person, so I'd check out the following functions and examples:

SetVolume (set the volume)
http://www.autohotkey.com/forum/topic9286.html

GetKeyState (determine the position of the joystick axis)
http://www.autohotkey.com/docs/commands/GetKeyState.htm

Remapping guides
Button/Keys/etc naming nomenclature
http://www.autohotkey.com/docs/KeyList.htm
Buttons/Keys
http://www.autohotkey.com/docs/misc/Remap.htm
Mouse/Joystick
http://www.autohotkey.com/docs/misc/RemapJoystick.htm

Joystick test script
http://www.autohotkey.com/docs/scripts/JoystickTest.htm

AFAIK, the joystick state for an analog axis is between 0 and 100.  The SetVolume command needs to be set between 0 and 100 also.  Thus, it should be a simple matter of poling for the position of the joystick and setting that value to the master volume.  You may want to try the joystick test script first to make sure AHK sees the axis correctly.

Good luck!   :cheers:
Navigation
Message Index
Previous page

Go to full version