Escape key
how can I get it so that if the user presses ''ESC'' then it will do something.
if (cKey == ''//???'') {//do something}
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any dumber?(What do you mean, "No"?)
Look up WM_KEYDOWN AND VK_*** if it''s for Windows, or getch() and getche() for DOS.
but i need to know what character is needed for ''ESC'' as pressing the esc button when creating the code will not work.
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any dumber?(What do you mean, "No"?)
VK_ESCAPE if its in windows
Romance is dead,it was bougth by Disney and Hallmark and sold to the public in small portions.
but what about dos?
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any more dumber?
(What do you mean, "No"?)
Could I be any dumber?(What do you mean, "No"?)
i think ESC is dec 27 in ASCII chart but i could be wrong
Edited by - Load Runner on October 16, 2001 6:00:31 PM
Edited by - Load Runner on October 16, 2001 6:00:31 PM
Romance is dead,it was bougth by Disney and Hallmark and sold to the public in small portions.
LoadRunner is right, it is 27 in dec and it is 1B in hex so I''ll use that.
Now all you have to do is what I described in the other post. When you parse the input String do this
This is, of course, as long as the escape key shows up in the standard input string, which I''m pretty sure it will do.
RandomTask
Now all you have to do is what I described in the other post. When you parse the input String do this
if( inputString[0] == 0x1B ){ MyProcessEscapeKeyFunction();}
This is, of course, as long as the escape key shows up in the standard input string, which I''m pretty sure it will do.
RandomTask
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement