ok,thx.
what's this below? another way of capture keys? how to?
#define SHIFT_R 0x0001
#define SHIFT_L 0x0002
#define CTRL 0x0004
#define ALT 0x0008
#define SCROLL_LOCK_ON 0x0010
#define...
Type: Posts; User: goldenrock
ok,thx.
what's this below? another way of capture keys? how to?
#define SHIFT_R 0x0001
#define SHIFT_L 0x0002
#define CTRL 0x0004
#define ALT 0x0008
#define SCROLL_LOCK_ON 0x0010
#define...
CTRL SHIFT and ALT ?
They have no ascii or extended ascii, how to capture?
-------------------
what's this below? another way of capture keys? how to?
#define SHIFT_R 0x0001
#define SHIFT_L...
str1 is a pointer, its value is a memory address,
*str1 is a char which str1 point to.
I don't understand your second sentence,sorry.
//if str1 is bigger return a positive number,
//if str2 is bigger return a negative number,
//equal reutrn 0
int strcmp(char *str1,char *str2)
{
while(1)
{
if(*str1==*str2)
...
Salem,
thank you for giving me such an inspirational hint.
I think I get it.
You mean 256 is necessary, right?
then the code must go this way:
int mygetch(void)
{
int ch=getch();
The Problem has been solved :)
thanks to all of you,
Special thanks to Salem and CodePlug.
to CodePlug and Salem,
I think plus 512 and 256 is not needed in the code anymore.
The Final...
I am sorry to trouble you again, Salem
Your method is working well for keys F1--F12,
but the rest don't work.
what's wrong?
int mygetch ( void ) {
int ch = getch();
thanks for all of you,
to Salem,
I know EXTENDED KEY needs two bytes,
I also find a link full of these extended keys,as below:
http://www.teletechnics.co.nz/reference/ascii_codes.html
but,...
I think that can't capture the 'page down',
any other method?
in c programming,
how can I capture keys like "page down", "ctrl+?", etc. using standard library?