- May
- 13,604
- 201
if I do this:
inkey /m %%foo
echo ##%foo##
if "%key" EQ "d" echo LeftButton
if %key EQ 240 echo LeftButton
I see ##d## (and no message echoed). I'm baffled.
I also suspect the third line below (help example) is wrong.
inkey Enter a key: %%key
if "%@ascii[%key]" == "27" echo Esc pressed
if %key EQ 240 echo Left mouse button clicked
inkey /m %%foo
echo ##%foo##
if "%key" EQ "d" echo LeftButton
if %key EQ 240 echo LeftButton
I see ##d## (and no message echoed). I'm baffled.
I also suspect the third line below (help example) is wrong.
inkey Enter a key: %%key
if "%@ascii[%key]" == "27" echo Esc pressed
if %key EQ 240 echo Left mouse button clicked