jkey - volume control Thread last updated on 2004-08-04 10:43:54

Posted by member 50129 on 2004-07-31 10:19:05

Trying to get the volume controls working on my laptop. I've used a keyboard scanner to get the 3 hex values for volume up, volume down and mute.

I've also downloaded the jkey.dll however, I've then figured that you have to name the action, and place it in the vk104 text file. How though do you link this with the command you want to execute? Thats what I don't understand. For example, how do I get the following to actually increase the volume in the volume control:?

Windows Volume Control Up... Hex Value 000000AF

Thanks for any help

Posted by member 48370 on 2004-08-01 14:31:15 link

u need some module that will actually raise or decrease the volume for you - like lsSlider then u assign a name for AF in the key table and create a shortcut for it somewhere

Posted by member 28487 on 2004-08-01 14:52:46 link

I use v-bang_lite.
*NetLoadModule v-bang_lite


Then I have use the following code to change the volume.
*Hotkey .none VOL_UP !Volume_Up 0
*Hotkey .none VOL_DOWN !Volume_down 0
*Hotkey .none VOL_MUTE !mute 0


Obviously VOL_UP, VOL_DOWN and VOL_MUTE are the names I've given to the keycodes in vk104.txt

Posted by member 50129 on 2004-08-01 17:34:34 link

Kinda getting there, just struggling a little bit.. keep getting an error invalid parameter:.none - Error in definition *Hotkey .none VOL_DOWN !Volume_down 0

using the following:
LoadModule "$ModDir$jkey.dll"
*NetLoadModule v-bang_lite


and then the code you used:
jKeyVKTable "vk104.txt"
jKeyUseHotkeyDef true

*Hotkey .none VOL_UP !Volume_Up 0
*Hotkey .none VOL_DOWN !Volume_down 0
*Hotkey .none VOL_MUTE !mute 0


and within the vk104.txt located within the modules directory:
VOL_UP , AF
VOL_DOWN , AE
VOL_MUTE , AD


I think if I fix the definition I should be sailing, however I can't find out how to define no shortcut as the documentation is pretty thin...

Posted by member 28487 on 2004-08-01 18:14:12 link

If you used Omars installer you don't need to load jkey or define the two jKey settings that you have above as that is already taken care of in your personal.rc.

Posted by member 50129 on 2004-08-01 18:49:25 link

My theme is only OTS1 compliant I think, and doesn't use the seperate rc files, its all in one step.rc file...

Posted by member 50129 on 2004-08-02 18:56:09 link

Any suggestions on the error message? how to define the none keyboard shortcut?

Thanks

Posted by member 28487 on 2004-08-03 05:45:43 link

Make sure you have the latest version of jkey. The .none paramter wasn't suported in earlier versions.

Posted by member 50129 on 2004-08-03 07:59:23 link

I downloaded my JKey module from the litestep downloads section, v 0.36, which according to the author's site is the latest version :S maybe I'll mail the author and ask about it...

Posted by member 28487 on 2004-08-03 11:04:41 link

0.38 is the latest version, download it from http://www.loose-screws.com

Posted by member 50129 on 2004-08-04 10:43:54 link

Downloaded a new OTS2 version of the theme I was using that someone converted, which included Jkey 0.37 which did the trick and it works fine now. Thanks for all the help Whitman