Giter Club home page Giter Club logo

usbdriveby's Issues

problems when keyboard layout != "U.S."

I'm using "Swiss French" as keyboard layout on my Mac. On the Arduino App I was unable to find any Keyboard Layout (from the Tools menu) in order to send correctly all the special keys needed in the scripts, like " ' {

By using "German (Mac)" I was able to send every needed key except ', so I slightly changed the script:

typeln("osascript");
typeln("tell application \"System Events\" to set bounds of window \"System Preferences\" of
application \"System Preferences\" to {0, 0, 700, 700}");
ctrl(KEY_D);

Linux Version

What is about a Linux Version? :) It should be easier than other Systems I think. Is this planned?

Library Used

What library do you use ? the typeln() command, openapp() or cmd(), or etc ?

By the way, really nice necklace ;)

Compiling Error(Arduino)

Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void openapp(String)':

USBdrivebyWindowsOS:33: error: 'KEY_R' was not declared in this scope

key(KEY_R , MODIFIERKEY_RIGHT_GUI);

   ^

USBdrivebyWindowsOS:33: error: 'MODIFIERKEY_RIGHT_GUI' was not declared in this scope

key(KEY_R , MODIFIERKEY_RIGHT_GUI);

           ^

USBdrivebyWindowsOS:37: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.print(app);

^

USBdrivebyWindowsOS:38: error: 'KEY_ENTER' was not declared in this scope

key(KEY_ENTER, 0);

   ^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void key(int, int)':

USBdrivebyWindowsOS:45: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.set_modifier(MODIFIER);

^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void waitForDrivers()':

USBdrivebyWindowsOS:57: error: 'keyboard_leds' was not declared in this scope

while (!(keyboard_leds & 2))

        ^

USBdrivebyWindowsOS:59: error: 'KEY_CAPS_LOCK' was not declared in this scope

 key(KEY_CAPS_LOCK, 0);

     ^

USBdrivebyWindowsOS:61: error: 'keyboard_leds' was not declared in this scope

if (keyboard_leds & 2)

   ^

USBdrivebyWindowsOS:63: error: 'KEY_CAPS_LOCK' was not declared in this scope

 key(KEY_CAPS_LOCK, 0);

     ^

C:\Users\Mr. Shultz\Documents\Arduino\USBdrivebyWindowsOS\USBdrivebyWindowsOS.ino: In function 'void pwn()':

USBdrivebyWindowsOS:71: error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?
Keyboard.println("cd AppData/Local/Temp");

^

USBdrivebyWindowsOS:85: error: 'KEY_F4' was not declared in this scope

key(KEY_F4, MODIFIERKEY_ALT);

   ^

USBdrivebyWindowsOS:85: error: 'MODIFIERKEY_ALT' was not declared in this scope

key(KEY_F4, MODIFIERKEY_ALT);

           ^

USBdrivebyWindowsOS:87: error: 'KEY_ENTER' was not declared in this scope

key(KEY_ENTER, 0);

   ^

USBdrivebyWindowsOS:94: error: 'KEY_SPACE' was not declared in this scope

key(KEY_SPACE, MODIFIERKEY_ALT);

   ^

USBdrivebyWindowsOS:96: error: 'KEY_C' was not declared in this scope

key(KEY_C, 0);

   ^

exit status 1
'KEY_R' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Incorrect code in windows version

On line 37 keyboard should not print app, it should print cmd (or at least that is what it looks like it needs to be, the portions that need to be filled in by the user are not clearly identified in this code which is extremely confusing, especially to someone who may not be very good with code).

Also, line 76 through 84 should be a lot more clear on what should be filled in by the user. (eg line 79: "for /f "tokens=1,2,3*" %%i in ('netsh int show interface') do ("); should not be in the code itself, but the most common one should be put in and then comments on the side should be added for what to do in different situations (unless this is part of the code and I am being very dumb).

The main idea here is that the code should be much more simple to fill in the information that is needed by the user, similar to how Teensyterpreter does it (in a strange way albeit). This code uses almost half the lines and I really want it to be the best it can be (or again, I am just being dumb and thinking about the coding from a different way which I really hope I am not because that would be embarassing).

Guide Manual

hello hope you can publish a manual or step by step implementation of this project. upon looking at the readme its all general information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.