Похоже китайцы прекратили выпуск миниклавиатур на которых можно набрать Ctr+Shift+End. Как вариант собрал из ардуино ATMEGA32U4 (Leonardo)
Leonardo.jpg
Кнопкой посылается пресловутый Ctr+Shift+End . Минус, что помимо HID устройства, в систему пытается установиться COM порт. Ну, а плюс, возможность использовать любую клавиатуру.
Скетч.
#include <Keyboard.h>
/* Simple HID Keyboard Example
by: Jim Lindblom
SparkFun Electronics
date: 1/17/12
This example code is here to show basic usage of the
Keyboard.write(char) function. The ProMicro emulates a USB HID
Keyboard. When a button press is sensed it'll send a 'z' over
USB to a computer.
A momentary push button is connected to the Arduino. One side of
the button connected to pin 9 the other side connected to ground.
*/
int buttonPin = 14; // Set a button to any pin
void setup()
{
pinMode(buttonPin, INPUT); // Set the button as an input
digitalWrite(buttonPin, HIGH); // Pull the button high
}
void loop()
{
if (digitalRead(buttonPin) == 0) // if the button goes low
{
Keyboard.press(KEY_LEFT_CTRL);
Keyboard.press(KEY_LEFT_SHIFT);
Keyboard.press(KEY_END);
//Keyboard.write('z'); // send a 'z' to the computer via Keyboard HID
Keyboard.releaseAll();
delay(1000); // delay so there aren't a kajillion z's
}
}
У вас нет необходимых прав для просмотра вложений в этом сообщении.