DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Very, very easy request: Show what key is pressed  (Read 14,287 times)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Very, very easy request: Show what key is pressed
« on: April 02, 2009, 08:25 PM »
I want to know what code a certain media key on my keyboard sents to my pc. I just want something what says which key is pressed. That's all. Scancode is fine aswel.
« Last Edit: April 02, 2009, 08:40 PM by Coeluh »

gexecuter

  • Move over and give us some room...
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 252
Re: Very, very easy request: Show what key is pressed
« Reply #1 on: April 02, 2009, 09:15 PM »
I think Skrommer had made a little app that when run showed what keyboard keys were being pressed, it was called ShowOff. It may be what you are looking for.
Mouser is made of win and awesome!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Very, very easy request: Show what key is pressed
« Reply #2 on: April 02, 2009, 09:17 PM »
I almost suggested ShowOff myself -- which is a cool program meant to show on screen in a nice big font the key being pressed, and was designed for making screenscast video recordings.. It's a very useful tool for such purposes.

BUT, i think what Coeluh is asking for (correct me if wrong!) is something to help him figure out what the hotkeys or keyboard scancodes are for certain keys, so that he can use these codes in another program.

gexecuter

  • Move over and give us some room...
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 252
Re: Very, very easy request: Show what key is pressed
« Reply #3 on: April 02, 2009, 09:21 PM »
I almost suggested ShowOff myself -- which is a cool program meant to show on screen in a nice big font the key being pressed, and was designed for making screenscast video recordings.. It's a very useful tool for such purposes.

BUT, i think what Coeluh is asking for (correct me if wrong!) is something to help him figure out what the hotkeys or keyboard scancodes are for certain keys, so that he can use these codes in another program.

Oh, if that's the case i dunno which app to recommend.
Mouser is made of win and awesome!

tranglos

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,081
    • Participated in NANY Challenge Twice
Re: Very, very easy request: Show what key is pressed
« Reply #4 on: April 02, 2009, 09:35 PM »
I want to know what code a certain media key on my keyboard sents to my pc. I just want something what says which key is pressed. That's all. Scancode is fine aswel.

try this:
http://www.tranglos.com/keytest.zip

(Really bare-bones, tested only on XP.)

scancode

  • I will eat Cody someday.
  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
    • Cody Award
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • DJ Badge - DJ
Re: Very, very easy request: Show what key is pressed
« Reply #5 on: April 02, 2009, 09:53 PM »
Another one, oh hell, while we're at it :P

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: Very, very easy request: Show what key is pressed
« Reply #6 on: April 03, 2009, 09:42 AM »
Thanks for the reply's, I found out the scancode is 133. Now what I need is try to do some ahk coding. I want to when 133 is pressed simulate a alt-f4
« Last Edit: April 03, 2009, 09:49 AM by Coeluh »

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
Re: Very, very easy request: Show what key is pressed
« Reply #7 on: April 03, 2009, 02:41 PM »
That's exactly how I'm using HotkeyP (again, sorry...), besides other functions. And I don't even need to know the scancode. But you require some eye candy, don't you? Then HotkeyP is out of luck, it's packed with features in lieu of graphical attractiveness.  :P

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Very, very easy request: Show what key is pressed
« Reply #8 on: April 04, 2009, 03:02 AM »
off-topic perhaps, but some of the member avatars are sure getting weirder.. :huh:

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: Very, very easy request: Show what key is pressed
« Reply #9 on: April 04, 2009, 09:26 AM »
off-topic perhaps, but some of the member avatars are sure getting weirder.. :huh:
Haha don't you love them :)?

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: Very, very easy request: Show what key is pressed
« Reply #10 on: April 05, 2009, 02:37 PM »
I can't figure it out. Anyone?

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: Very, very easy request: Show what key is pressed
« Reply #11 on: April 09, 2009, 01:11 AM »
:) This topic has been discussed at lenths at the AutoHotkey forum. Try SKAN's scancode utility at http://www.autohotkey.com/forum/viewtopic.php?t=22881, or shaun's at http://www.autohotkey.com/forum/topic39574.html.

Skrommel

Original address: https://www.donationcoder.com/forum/index.php?topic=17748.0