91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

Logitech K380藍牙鍵盤,默認最頂上一排鍵是各種快捷功能。用Logitech的軟件可以改成默認F1~F12。但是為了改個Fn鍵,裝200M軟件也太那什么了。
此程序可用VC編譯,在Windows下運行,找到K380鍵盤后,寫入相應的指令,打開Fn鎖定功能,最頂上一排鍵默認為F1~F12。
每次開關、重新連接鍵盤后,需重新運行此程序。如果想關閉Fn lock,可以發送程序中帶的k380_seq_fkeys_off數據串給鍵盤。更簡單的辦法是關掉再打開。
此程序原本是劫持條碼掃描槍用的。前面查找HID設備名的功能都一樣。后面發送指令的功能是從:
https://github.com/jergusg/k380-function-keys-conf
這里摳出來的。

資源截圖

代碼片段和文件信息

/*
?*???To?compile:
?*
?*???cl?k380_fn_on.c?/link?user32.lib?kernel32.lib
?*???
?*???based?on:
?*???http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/
?*???https://github.com/embuc/k480_conf
?*???https://github.com/jergusg/k380-function-keys-conf
?*
?*?This?program?is?free?software:?you?can?redistribute?it?and/or?modify
?*?it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
?*?the?Free?Software?Foundation?either?version?3?of?the?License?or
?*?(at?your?option)?any?later?version.
?*
?*?This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*?along?with?this?program.??If?not?see?.
?*/

#include?
#include?
#include?

int?error(int?errnum){
printf(“Customized?error:%d\nSystem?errno:%d\n“errnumerrno);
return(-1);
}

const?char?k380_seq_fkeys_on[]??=?{0x10?0xff?0x0b?0x1e?0x00?0x00?0x00};
const?char?k380_seq_fkeys_off[]?=?{0x10?0xff?0x0b?0x1e?0x01?0x00?0x00};

const?char?opt_on[]??=?“on“;
const?char?opt_off[]?=?“off“;

int?main(int?argc?char*?argv[]){

int?i;
UINT?nSize;
UINT?dwSize;
LPVOID?pData;
LPBYTE?lpb;
HANDLE?hBarcodeScanner;
HRESULT?hResult;
UINT?nDevices;
PRAWINPUTDEVICELIST?pRawInputDeviceList;
RAWINPUTDEVICE?RID[2];
RAWINPUT*?raw;
LPTSTR?szTempOutput;

if?(GetRawInputDeviceList(NULL?&nDevices?sizeof(RAWINPU

評論

共有 條評論