jkey keycodes Thread last updated on 2007-04-12 08:31:40

Posted by member 281637 on 2005-11-07 18:10:54

I have used scankey to find out the hex code for my keys but how do I use vk104 to assign thoes codes (Ie, AE, AF, etc) to control volume and such? not sure how to find the appropriate command

Posted by member 248213 on 2005-11-07 20:54:54 link

search the forum before Devil kills you ;)

Posted by member 212670 on 2005-11-07 20:56:04 link

Here's an example for my MS Multimedia keyboard's volume up key.

1. Open your vk104.txt file in your \Litestep\personal\jkey folder.

2. On its own line, add:
WOOT , VkCode

For example, my volume up's vkcode is 000000AF. Of course, you want the name (WOOT above) to be something sensible, so I use VolumeUp. So this is what it looks like for me:
VolumeUp , 000000AF

(Or AF for short works, too.)

3. Make a hotkey for it.
*Hotkey .none VolumeUp !BangCommand

Note: *hotkey is used instead of *jkey when jKeyUseHotkeyDef is defined (which it is by default).

That's it. When I use the volume up key on my keyboard, it uses the 000000AF code, which points to VolumeUp. So whatever !BangCommand you have defined is fired.

Posted by member 212670 on 2005-11-07 20:57:37 link

Oh ya, search the forum. :D (Was posting that when fractal posted :P)

Posted by member 5575 on 2005-11-07 22:17:28 link

You're sure he shouldn't just email DeViLbOi?

Posted by member 212670 on 2005-11-07 22:39:15 link

DeV replied with a pretty stern "No" last time I suggested it. =\ (But, I do think it's the best solution.)

Posted by member 1 on 2005-11-07 22:45:53 link

I do have email addresses for you both. Would you like some spam to go with your wonderful LSnet Forum Support emails? Or maybe Ill just subscribe you to every forum thread on LSnet...that way you can support more people quicker. :p

Posted by member 212670 on 2005-11-07 23:18:40 link

Or maybe Ill just subscribe you to every forum thread on LSnet

Haha now that would suck!

Posted by member 248213 on 2005-11-08 00:43:10 link

Bring it.

;D

Posted by member 5575 on 2005-11-08 23:24:53 link

Hmmm, which address *did* I use for this site...

Posted by member 267050 on 2005-12-28 03:53:21 link

xcal, i don't understand your example to create an hotkey.

And how can i find the vkcode of the optionnal keys?

Thanks in advance (oh, and btw, the search option looks dead and i don't have any lemmings)

Posted by member 212670 on 2005-12-28 04:35:32 link

Posted by member 1949 on 2005-12-28 09:45:27 link

I will try and explain in detail for the lemmings...
This example is for my logitech dinovo keyboard

In the litestep personal folder you have a jkey folder
inside is your vk104.txt file
I modified mine like this.
Note these are just added and not replacing the others

Internet , AC
Email , B4
Search , AA

VolUp , AF
VolMute , AD
VolDown , AE

Media , B5
PlayPause , B3
Next , B0
Previous , B1
Stop , B2


I use scankey to get the codes and just use the last two letters and numbers in the example above...

Next we add the triggers to these button actions using
hotkeys in the litestep\personal\hotkey.rc file

So it would look like this when finished.
Note these are just added and not replacing the other hotkeys as well.

*Hotkey .none Internet "$Browser$"
*Hotkey .none Email "$Email$"
*Hotkey .none Search "C:\LiteStep\utilities\Find.exe"

*Hotkey .none Volup !SliderVolumeup
*Hotkey .none VolMute !Mute_Toggle
*Hotkey .none VolDown !SliderVolumeDown

*Hotkey .none Media !Amp_LoadDir
*Hotkey .none PlayPause !Amp_PlayPause
*Hotkey .none Next !Amp_Next
*Hotkey .none Previous !Amp_Prev
*Hotkey .none Stop !Amp_Stop


Please note that this setup is for my obsidian theme because it uses some scripts explicit to that theme on my hotkey binds.

So modify the bang commands to suit your setup.
I hope this helps others out also... enjoy!

Posted by member 267050 on 2005-12-28 14:31:51 link

Thanks a lot, it works perfectly ! (and thanks also for the scankey link).

Posted by member 302005 on 2006-01-30 10:31:35 link

WOW! Thanks m8 even a n00b like me could do this. However the Mute doesn't work. What function is the Mute key for the Vitrelous2_beta2 or is it universally the same? (:P i prefer e-mail contact or forum PM lol) thanks in advance! :D

~nightfire

Posted by member 1949 on 2006-01-30 12:19:34 link

!Mute_Toggle is not a valid mute bang unless you are running Obsidian theme.

However if you are running LsSlider than you can use
!SliderMute

Check out the About box for more valid bangs in your theme.
Its located in your popup under litestep - About

Posted by member 212670 on 2006-01-30 14:28:06 link

What Immortal really means is "!Mute_Toggle is not a valid mute bang unless you are running a theme that has scripted that function."

Obsidian happens to be one that has done that.

Posted by member 1949 on 2006-01-30 15:33:29 link

:) thanks for that correction brother...

Posted by member 212670 on 2006-01-30 23:18:42 link

Heh just teasing about your Obsidian promotion. :)

Posted by member 302005 on 2006-01-31 11:36:01 link

:D thanks guys i'm glad i've got that clarified. i shall change it now.

another quickie: whenever i load up LiteStep (this is ever since i put the JKey into the LiteStep folder) i get a message saying "C"\Program Files\LiteStep\jkey-0.3..." and says "Error: Could not locate module. Please check your configuration." I am assuming this means the JKey module is not loading properly? i guess i'm trying to use the Hotkey module but for some reason it's also trying to load up the jkey module. any ideas as to what this problem is? :D thanks in advance! :D

also i'm going to check the Obsidian theme LOL XD thanks again guys the mute button works PERFECTLY! i appreciate it!

~nightfire

Posted by member 250843 on 2006-12-05 16:00:34 link

Has this changed at all for OTS3? My media hotkeys don't seem to be working. I first modified the vk104.txt in the jkey folder in the ots3 directory, and tried with just *Hotkey:
*Hotkey .none WebHome "$Browser$"
*Hotkey .none Mail "$Email$"

(which worked on OTS2)
This gave me definition errors on recycle:
'Invalid - "WebHome"
Error in definition:
*Hotkey .none WebHome "C:\Program Files\..."'

Then I tried using *jKey commands instead, and didn't get any errors, but didn't get any functionality, either. Any ideas?

Posted by member 5575 on 2006-12-05 20:09:10 link

Which hotkey module is being loaded? And why are you using OTS3?

Posted by member 1 on 2006-12-05 20:31:57 link

Did you copy over your vk104.txt file to the new install? Is jkey being loaded?

Posted by member 250843 on 2006-12-05 21:27:36 link

Yes, and no, because that's the step I always always forget. However, this has not fixed the problem.

Posted by member 1 on 2006-12-06 04:41:40 link

what step?

Posted by member 250843 on 2006-12-06 06:57:11 link

I forgot to load jkey, but after rectifying that, I have the same problems.

Posted by member 67337 on 2007-02-19 15:43:53 link

.none should be listed in the documentation as a modifier key. I looked all over, and finally found it listed in this post.

Posted by member 22515 on 2007-03-09 20:19:05 link

.none detected as error with jKey 0.36

Invalid parameter: .none

Error in definition:
*Hotkey .none VK_MEDIA_PLAY_PAUSE !About


Any suggestions? May be there are other version of jKey ?

Posted by member 212670 on 2007-03-09 20:43:02 link

.none is not a valid parameter in 0.36. Did you use Omar's installer? I thought for sure that had 0.37. Anyway, you can change the jkey version in your personal.rc.

(edited a million times due to being tired)

Posted by member 5575 on 2007-03-10 00:16:24 link

If I was tired,I would have quit after the first 100,000.

Posted by member 212670 on 2007-03-10 09:15:49 link

I have better stamina. :>

Posted by member 5575 on 2007-03-10 12:47:44 link

Certain repetitive motions can help you build that sort of thing.

Posted by member 250843 on 2007-04-10 18:45:31 link

So now I've got the opposite problem. I'm trying to use the GSM theme, and it won't play nice with the OTS3 proposal, so I'm back to OTS2. However, I get all the hotkey definition errors upon a recycle, but the hotkeys still work. Switching all the "*Hotkey" lines to "*jKey" in my hotkey.rc file removes the error, but also the functionality.

Posted by member 212670 on 2007-04-10 21:07:57 link

Sounds like your hotkey.rc is being included twice. Once by Litestep (\litestep\personal\personal.rc) and once by the theme itself. Check in the theme.rc of the theme.

Posted by member 250843 on 2007-04-11 17:15:43 link

Doesn't look like hotkey.rc is called in the theme.rc at all.

Posted by member 212670 on 2007-04-11 19:44:20 link

Well, go through all of the theme's rc files and see if there are any lines setting hotkeys that are already defined.

Posted by member 5575 on 2007-04-11 20:13:55 link

What hotkey modules are being loaded (try !about)?

Do you have this setting in your personal.rc?

jKeyUseHotkeyDef

Posted by member 250843 on 2007-04-12 08:31:40 link

Turns out it was just a problem with the GSM theme, which has been corrected. Thanks anyway.