Controlling keyboard/mouse with Pico

I was twiddling around with the raspberry pi pico support for arduino ide(i downloaded the arduino mbedos for rp2040 tool). I found an example in Example>Example for raspberry p i pico>UsbHID>Mouse. Upon uploading the program, the cursor started moving in specific directions, which were the coordinates.

#include "PluggableUSBHID.h"
#include "USBMouse.h"

USBMouse Mouse;

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
  delay(1000);
  Mouse.move(100,100);
  delay(1000);
  Mouse.move(-100,-100);
}

I was wondering if their was possible to click a program, for example, arduino IDE itself which is pinned to taskbar (Windows OS).
Thanks in Advance!

I'm not familiar with the Pi Pico.

You will need to find the coordinates of the icon, move your mouse pointer there and do a mouse click.

Is there a keyboard functionality, it might be easier. For Windows, send <ctrl><esc> to open the start menu, next send the run command and lastly send the full path of the application.

I'm not sure for other operating systems.

but the problem lies here that i cannot find the specific syntax which works similar to Keyboard.press in the Keyboard.h library. For pi pico, USBKeyboard.h is only supported. I want to know what that specific syntax is.

Yes I'm searching for that only

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.