First post, by curvedline
curvedline
Offline
Rank
Newbie
debug getq.com
-a
mov ah,1
int 21
sub al,51
jz 10a
sub al,20
mov ah,4c
int 21
-r cx
e
-w
-q
what getq.com does is ...When you execute GETQ, the ERRORLEVEL will be 0 if they hit q or Q, and something other than zero (i.e. if errorlevel 1 ...) if they pressed anything else.
could you change this GetQ.com to GetKey.com by removing the Q interrupt maybe?
this ERRLVL.COM given to me by DaveDDS was really good for me, it returned all kinds of errorlevels, that i could replace the choice command, and even work with {enter}{esc} {spcaebar}keys and etc
ERRLVL.COM GETQ.COM
if errorlevel 175 echo {spacebar}
and etc
i hope the Q-key now to be in its original errorlevel place to be a GetKey.com
if not too difficult, you could also add F1~F12 function keys and {ins} {del}{home} {end} or partially, but this is not that important.