Arduino Configurable HID (Data entry tool or configurable payload?)

Hi Arduino Forums!

I have created a sketch to automate certain tasks on a computer with an Arduino Leonardo, flashed Uno, etc.. It contains ten commands at the time of writing this, and all are configurable and repeatable.

They are as following:

N-#, E-#, S-#, W-#, L, R, C, P, H, S

North, East, South, West, Left Click, Right Click, Copy, Paste, Highlight & Scroll1 Cell (Excel only)

There is a list of Strings in the source code, titled 'commands[]'.
If we change it to:

commands[] = {"E-200","S-200","W-200","N-200","R"};[/li]

The Arduino will move your mouse in a small square and right click.

Very simple, but extremely powerful for my needs (copying data from excel into a program).

Here is the source code: https://gist.github.com/Snumbers/998822560ac1dbea1e6b66492359f388

Cheers!

Not to poop on your work but you should look into the numerous libraries available for reading XLSX files. It would be much more straightforward to write a script that would read from the Excel file directly.