//示例：等待左右 Ctrl 键

_SUB FlashK,W110H60,,,,-#30,,-top -nocap //顶层闪一下信息 // 模拟神州笔记本的 热键服务 
    LABE -center ,L0T0W112H62,%1,,0xFF,40
    TIME Timer1,1000, KILL  \
_END  //

_SUB FlashK0,W10H6,,,,-#98,,-top -nocap 
    TIME Timer1,1, KILL  \
_END 


_SUB MoniKEY
    CALL @FlashK0 
    WAIT -0  //CLEAR
    ENVI &&MSG=
    LOOP #1=%&BWAIT%,
    {
        WAIT -cont -100,&&V
        envi &kk=0
        IFEX $%&V%=0xA2, ENVI &&kk=lCtr  // Left  Ctrl
        IFEX $%&V%=0xA3, ENVI &&kk=rCtr  // Right Ctrl
        FIND $%&kk%<>0,  TEAM ENVI &Ctrl=%&V%| CALL @FlashK %kk%  //| MESS  [%&Ctrl%]
        FIND $%&V%=,!  ENVI &MSG=%&MSG% [%&V%]
    }
    MESS 所有按键:%&MSG% @ #OK *3000
_END

ENVI &&Ctrl=  //空
ENVI &&BWAIT=1
THREAD* MoniKEY  //后台：线程监视按键 Ctrl 

WAIT 8000 // 干活去了
ENVI &BWAIT=0  //STOP线程监视按键
MESS  Ctrl:[%&Ctrl%] @ #OK *3000 //检测结果
