LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   raspberry pie controlling mouse using accelerometer sensor (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/raspberry-pie-controlling-mouse-using-accelerometer-sensor-4175556197/)

parmeet 10-15-2015 01:36 AM

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

rtmistler 10-15-2015 12:53 PM

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?

parmeet 10-15-2015 01:28 PM

it would be better if i select a file from gui using mouse and that file name get automatically copied to terminal ? is there any way to do so

rtmistler 10-15-2015 01:42 PM

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.

parmeet 10-15-2015 01:46 PM

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!!!!


All times are GMT -5. The time now is 01:55 AM.