Comments (8)
I try tomorrow... :)
I have the same troble
(Sorry if my english is bad)
from keybd_event.
No worries, your english is good!
Let me know if you have any news, it's such a weird error :-S
from keybd_event.
Hi
I do build on my mac os x (10.11.2) it's ok. But cross compilation in linux isn't ok.
Bugs probably come on C code in file keybd_darwin.go
My skills is not good for find other way
In header keybd_darwin.go is compiled :
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Foundation/Foundation.h>
CGEventRef Create(int k){
CGEventRef event = CGEventCreateKeyboardEvent (NULL, (CGKeyCode)k, true);
return event;
}
void KeyTap(CGEventRef event){
CGEventPost(kCGAnnotatedSessionEventTap, event);
CFRelease(event);
}
void AddActionKey(CGEventFlags type,CGEventRef event){
CGEventSetFlags(event, type);
}
It's possible same troble for gox
from keybd_event.
Actually I dont think it's C specific, as I can see it not compiling under some linux archs as well:
--> linux/386 error: exit status 2
Stderr: # github.com/micmonay/keybd_event
../../micmonay/keybd_event/keybd_event.go:22: undefined: initKeyBD
from keybd_event.
I have updated for your project touchy, because keys having not same name. I have testing your project on mac os x it is ok for me. But cross compilation I don't know why it is crashing.
I find a solution... but I don't have a long experience in GOLANG
from keybd_event.
Hard !
I found and I have a first solution for linux x86 but no for darwin
env CGO_ENABLED=1 gox [project]
Trouble comes from cgo, some files are ignored. I don't know why exactly ^^
from keybd_event.
Oh that's nice! Let me try it!
from keybd_event.
Hi, for linux/arm of Debian 9
solution:
apt-get install gcc-arm-linux-gnueabi
env GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 go build ./main.go
from keybd_event.
Related Issues (20)
- Insert Linux delay into keybd_linux.go HOT 4
- Hold button functionality
- Remote SSH Connections... HOT 2
- High latency on MacOS
- VK_CAPSLOCK is invalid HOT 3
- Question/Bug - Setting the same key twice only outputs once HOT 1
- checksum mismatch HOT 5
- How to type the # character? HOT 3
- Search for key by string? HOT 2
- Problems with the installation
- Shift+arrow sends only arrow key
- Function key in macOS
- Can not compile on macOS 12.3 (C code errors) HOT 1
- Strange error im getting. HOT 3
- Pressing most keys on Windows doesn't work as expected HOT 1
- Compilation fails on macos-11 & macos-12 HOT 3
- Error while building for Linux Arch 386 HOT 1
- Error in libraries when compiling HOT 2
- macos: alt-tab not ... alt tabbing? HOT 1
- (removed)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keybd_event.