1.

Solve : Escape Key symbol?

Answer»

Would there be a symbol for the escape KEY. I'm trying to make a batch file, and if you press escape it goes back to the main menu.Use alt-27. Note: the 27 must be typed from the numeric keypad. Every application seems to see escape as a different symbol. One EDITOR I have sees it as a question mark, notepad sees it as a left pointing arrow, and the command line sees it as ^[

Why make things difficult? Why not just use a alphanumeric key not already being used in your application?





But it's not like the PERSONS using the program in notepad . So, what's the symbol in batch files. Or would it be the same as the command line.Quote from: BatchFileCommand on January 12, 2009, 04:32:04 PM

But it's not like the persons using the program in notepad . So, what's the symbol in batch files. Or would it be the same as the command line.

it won't matter what the symbol is. Most applications, when seeing the escape, with translate it into a upwards arrow, but most translate it into the square "unknown glyph" box, but guess what... it's code changes as well.

you would need to edit your batch file via COPY CON or the DOS edit program in order to get the proper codes in. OR- use a real text editor, like EmEditor, PFE, Editpad, UltraEdit...Quote
use a real text editor

I use a real text editor for programming languages. Notepad ++ is an awesome program.ok, you should be able to insert a symbol somehow. the ASCII code, if memory serves, is 26. Could be wrong, though.Quote from: BC_Programmer on January 12, 2009, 07:48:15 PM
ok, you should be able to insert a symbol somehow. the ASCII code, if memory serves, is 26. Could be wrong, though.

You are. Escape is 27.
Tada! It worked. Problem solved .Quote from: Dias de verano on January 13, 2009, 06:08:40 AM
Quote from: BC_Programmer on January 12, 2009, 07:48:15 PM
ok, you should be able to insert a symbol somehow. the ASCII code, if memory serves, is 26. Could be wrong, though.

You are. Escape is 27.


Awww, So close too! Good thing I added the disclaimer Quote from: BC_Programmer on January 13, 2009, 12:44:21 PM
Quote from: Dias de verano on January 13, 2009, 06:08:40 AM
Quote from: BC_Programmer on January 12, 2009, 07:48:15 PM
ok, you should be able to insert a symbol somehow. the ASCII code, if memory serves, is 26. Could be wrong, though.

You are. Escape is 27.


Awww, So close too! Good thing I added the disclaimer

Time was, I knew them all by heart... all way from 0, NUL to 128, these DAYS if I ever need an ASCII code, I just look 'em up. My favourite editor, UltraEdit32, has an ASCII chart in the View menu



Discussion

No Comment Found