obv-mikhail / InputBot

Rust library for creating global hotkeys, and simulating inputs
MIT License
414 stars 74 forks source link

Does it support macos now? #63

Open fakecore opened 2 years ago

fakecore commented 2 years ago

I saw some PRs about support macos being merged. But I don't see the macos branch being merged into the mainline. Does there have any problem to support macos?

obv-mikhail commented 2 years ago

@fakecore I think that branch didn't have full support for everything. I think it is fine to merge even partial support into the main branch though.. What do you think?

I am personally not able to work on mac support as I don't own a mac.

fakecore commented 2 years ago

ok. I will finish and test the macos code when I'm free.

Redhawk18 commented 1 year ago

got this error on my github macos runner

error[E0599]: no method named `press` found for enum `public::KeybdKey` in the current scope
--
2 | --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inputbot-0.5.1/src/public.rs:217:41
3 | \|
4 | 10  \| pub enum KeybdKey {
5 | \| ----------------- method `press` not found for this enum
6 | ...
7 | 217 \|                     KeybdKey::LShiftKey.press();
8 | \|                                         ^^^^^ method not found in `KeybdKey`
9 |  
10 | error[E0599]: no method named `press` found for enum `public::KeybdKey` in the current scope
11 | --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inputbot-0.5.1/src/public.rs:219:27
12 | \|
13 | 10  \| pub enum KeybdKey {
14 | \| ----------------- method `press` not found for this enum
15 | ...
16 | 219 \|                 keybd_key.press();
17 | \|                           ^^^^^ method not found in `KeybdKey`
18 |  
19 | error[E0599]: no method named `release` found for enum `public::KeybdKey` in the current scope
20 | --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inputbot-0.5.1/src/public.rs:221:27
21 | \|
22 | 10  \| pub enum KeybdKey {
23 | \| ----------------- method `release` not found for this enum
24 | ...
25 | 221 \|                 keybd_key.release();
26 | \|                           ^^^^^^^ method not found in `KeybdKey`
27 |  
28 | error[E0599]: no method named `release` found for enum `public::KeybdKey` in the current scope
29 | --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inputbot-0.5.1/src/public.rs:223:41
30 | \|
31 | 10  \| pub enum KeybdKey {
32 | \| ----------------- method `release` not found for this enum
33 | ...
34 | 223 \|                     KeybdKey::LShiftKey.release();
35 | \|                                         ^^^^^^^ method not found in `KeybdKey`
36 |  
37 | For more information about this error, try `rustc --explain E0599`.

@ me if this ever gets fixed, because this is the only thing stopping my app from being used on macos.