其他分享
首页 > 其他分享> > 模拟按下'F8'键

模拟按下'F8'键

作者:互联网

#include "uf_all.h"
#include <afxwin.h>

extern DllExport void ufusr( char *param, int *returnCode, int rlen )
{

    // 模拟按下'F8'键
    keybd_event(0x77, 0, 0, 0);
    keybd_event(0x77, 0, KEYEVENTF_KEYUP, 0);

}

extern "C" int ufusr_ask_unload( void )
{
    return (UF_UNLOAD_IMMEDIATELY); 
}

 

标签:F8,ufusr,int,按下,keybd,extern,include,event,模拟
来源: https://www.cnblogs.com/huadong2020/p/16384138.html