Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running the keyboard example #2

Closed
Caresle opened this issue Dec 18, 2022 · 2 comments
Closed

Problem running the keyboard example #2

Caresle opened this issue Dec 18, 2022 · 2 comments

Comments

@Caresle
Copy link

Caresle commented Dec 18, 2022

Hi, I'm having an error when i try to run the example of the keyboard:

use rsautogui::keyboard::{self, Key};

fn main() {
    keyboard::typewrite("lorem ipsum"); // Simulates typing the string provided.

    keyboard::key_down(Key::Layout('a')); // Presses specified key down.
    keyboard::key_up(Key::Layout('a')); // Releases specified key up.
    keyboard::key_tap(Key::Layout('a')); // Performs specified key up and down.
}

I get the next error when i run cargo run .

image

Here it's the information about my rust, cargo and rsautogui version

OS: Windows 10
rustc 1.66.0 (69f9c33d7 2022-12-12)
cargo 1.66.0 (d65d197ad 2022-11-15)
rsautogui = "0.1.5"
@rcsaquino
Copy link
Owner

rcsaquino commented Dec 18, 2022

Hi!

Unfortunately, this is a problem of 1 of the dependencies of this crate. Unless they fix it, there's nothing I can do other than rewrite the crate. I'm planning on rewriting this crate from scratch and minimizing dependencies to avoid problems like this in the future. I'm just not sure when I can start doing it as I have a lot on my hand at the moment. Sorry about the inconvenience.

Cheers!

@rcsaquino
Copy link
Owner

Should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants