| View previous topic :: View next topic |
| Author |
Message |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Thu Aug 16, 2007 6:50 pm Post subject: Labtec keyboard: Need keycodes for special keys |
|
|
Hi folks,
I bought myself a wireless keyboard from Labtec ("Media Wireless Desktop") wich has 15 extra keys. It works fine, but the featured software is [...] (insert a f-word of your choice in brackets ). So I'm searching the keycodes for that keyboard. The problem is that I've Win 98 and can not install that keyhook and spy out the aditional codes.
Has anybody such a keyboard or does anybody know a method to find out the codes?
Thanks in advance!
Peter _________________ Peter
Wisenheiming for beginners: KaPeGe (German only, sorry) |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Aug 16, 2007 7:01 pm Post subject: |
|
|
what keys are they?
see the key list in the help file
| Quote: |
The following exist only on Multimedia or Internet keyboards that have extra buttons or keys:
Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Thu Aug 16, 2007 7:21 pm Post subject: |
|
|
Thanks for your quick answer!
I used this code:
| Code: | +^q:: ; Test
KeyWait Launch_Mail
msgbox, Hello
return
|
After pressing ctrl+shift+q the answere is "Hello" without waiting. (I have Win 98.) _________________ Peter
Wisenheiming for beginners: KaPeGe (German only, sorry) |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Aug 16, 2007 8:13 pm Post subject: |
|
|
try:
| Code: |
Browser_Back::
Browser_Forward::
Browser_Refresh::
Browser_Stop::
Browser_Search::
Browser_Favorites::
Browser_Home::
Volume_Mute::
Volume_Down::
Volume_Up::
Media_Next::
Media_Prev::
Media_Stop::
Media_Play_Pause::
Launch_Mail::
Launch_Media::
Launch_App1::
Launch_App2::
Msgbox, %A_thisHotkey%
Return
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Fri Aug 17, 2007 7:05 am Post subject: |
|
|
Thanks for your hint, but this won't work either. So I did this:
| Code: | loop, 999
{
cnt = 00%A_Index%
cnt := SubStr(cnt,-2,3)
raus = %raus%SC%cnt%::`r`n
}
FileAppend, %raus%, C:\WINDOWS\Desktop\Script\AlleKeyCodes.ahk
|
to generate that:
| Code: |
#MaxThreads 1100
SC001::
SC002::
SC003::
SC004::
SC005::
SC006::
SC007::
SC008::
...
Msgbox, %A_thisHotkey%
Return
|
It wasn't working with all 999 codes so I cropped it at 575 and than it works.
And what's the result? Every key is sending code 100!
Changing "SC" into "VK" the result are five errors like "VK100 will not be active because it does not exist in the current keyboard layout" repeating with 200, 300, 400 and 500.
Then it's working but none of the special keys is responding at all. The normal keys are in both cases working as expected.
Has anybody an idea? _________________ Peter
Wisenheiming for beginners: KaPeGe (German only, sorry) |
|
| Back to top |
|
 |
|