BG kbd - always present key except letter one

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
lazna
Posts: 53
Joined: 27 Dec 2012 10:54

BG kbd - always present key except letter one

#1 Post by lazna » 20 May 2022 12:20

Have part of large script which print lines of items to screen and users have to choose one them by press key of assigned letter. Number of lines vary, all alphabete letters may be occupied. There should be two more options except choosing some items in the menu: (b)ack and (q)uit. Convention used in menus in rest of script is "first letter in menu word have to be keypressed" but, as mented, all letters could be occupied in this case.

Want to employ only keys which are same on all keyboards, regardingless if it is desktop or laptop, or if there is some regional keybord layout (still expect latin letters [a-z] present on keyb layout). Is there any key in the keyboard which is shared across all keyboard layout except a-z?

Testing CTRL+KEY solution which give me value 2 for CTRL+b resp. 17 for CTRL+q, but do not know if this is reliable and still prefer single key solution, if it is possible.

Any ideas?
Last edited by lazna on 20 May 2022 16:47, edited 1 time in total.

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: BG kbd - always present key except letter one

#2 Post by aGerman » 20 May 2022 12:48

Honestly I don't even expect latin letters to be present on every keyboard. Thinking of cyrillic or greek keyboard layouts for example. Maybe you'll have luck with 0-9 which should be at least more likely to exist than A-Z.

Steffen

lazna
Posts: 53
Joined: 27 Dec 2012 10:54

Re: BG kbd - always present key except letter one

#3 Post by lazna » 20 May 2022 16:46

Its a technical tool, for such purpose expecting querty (or similar) keyb is far enough. I have not ambitions to make it working on ANY computer

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: BG kbd - always present key except letter one

#4 Post by ShadowThief » 20 May 2022 23:35

I'd expect every keyboard to have a spacebar and an enter button

lazna
Posts: 53
Joined: 27 Dec 2012 10:54

Re: BG kbd - always present key except letter one

#5 Post by lazna » 22 May 2022 14:18

thats it!

I cant realize enter key use is possible, but it does work!

thanks, L.

Andrew92
Posts: 8
Joined: 26 Apr 2022 09:15

Re: BG kbd - always present key except letter one

#6 Post by Andrew92 » 25 May 2022 08:07

ShadowThief wrote:
20 May 2022 23:35
I'd expect every keyboard to have a spacebar and an enter button
That would be expected yes but I think we'll be suprised

Post Reply