等待按键 - WaitKey
函数简介:
等待指定的按键按下 (前台,不是后台)
接口名称
WaitKey
DLL调用
int WaitKey(long ola, int vk_code,int time_out)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。vk_code
(整型数): 等待的按键码。time_out
(整型数): 等待超时时间,单位毫秒。
示例:
待补充...
COM调用
int WaitKey(int vk_code,int time_out)
参数定义:
vk_code
(整型数): 等待的按键码。time_out
(整型数): 等待超时时间,单位毫秒。
示例:
ola = com("ola.olasoft")
ola.WaitKey(66,0)
返回值
整型数:
0 : 超时
1 : 指定的按键按下