Getkb

Table of contents

  1. get @getkb
  2. call @getkb

get @getkb

Wait for key press and return the code of it.

set "code="!@getkb!"
echo code: !code!

call @getkb

Wait for key press and set the code in Errorlevel.

call @getkb
echo code: !errorlevel!