AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Labtec keyboard: Need keycodes for special keys

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
kapege.de



Joined: 07 Feb 2005
Posts: 186
Location: Munich, Germany

PostPosted: Thu Aug 16, 2007 6:50 pm    Post subject: Labtec keyboard: Need keycodes for special keys Reply with quote

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 Very Happy ). 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
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Thu Aug 16, 2007 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kapege.de



Joined: 07 Feb 2005
Posts: 186
Location: Munich, Germany

PostPosted: Thu Aug 16, 2007 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Thu Aug 16, 2007 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kapege.de



Joined: 07 Feb 2005
Posts: 186
Location: Munich, Germany

PostPosted: Fri Aug 17, 2007 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group