raspberry pie controlling mouse using accelerometer sensor
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
raspberry pie controlling mouse using accelerometer sensor
i want to use raspberry pie to control mouse pointer (running raspbian on pi),i want to implement that if i able to select a file using mouse i want the name of that file to get copied it to terminal so i can send it to my other linux using sockets.. i want to know how to get a file name in linux terminal selected by mouse ?? pls help
Is there a different way to solve this? For instance, do you wish to be able to see the filenames in a given directory and then choose from them? Rather than deal with trying to write code which breaks into the File Manager and just channels the name of a randomly selected file?
The only way I know that does it would be to select the file in the GUI, right mouse to get a menu choice or just F2 to rename and when it now selects the file name for re-naming, copy that and then paste that into your terminal session. Likely this isn't what you want to to. Sounds more like you want screen spy type of software so it will grab files that someone touches with the mouse pointer. I don't believe it would be mouse software either, instead it would be breaking into the code for the desktop manager or the file manager to determine what file(s) are selected and then channeling that information out a program resource to place it on your terminal.
yeah i want that spy kind of thing to work :P ..,,as my script for socket will be running in the terminal which want a file name so i can send it over the network to other computer so to make it interactive i want to select the file from gui and let terminal do its work!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.