Check if user has hit a certain key like the ESC kay
BOOL is_key_hit( int nKey = VK_ESCAPE, BOOL bRemove = true, int nKeyState = 0 )
EX1
void kk() { int nn = 0; while(nn < 1000000) { if(is_key_hit('C', true, VK_CONTROL)) break; string str; str.Format("Ctrl-C to stop, cound = %d", nn++); SetDataDisplayText(str); } out_int("nn = ", nn); }
origin.h