LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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


Reply
  Search this Thread
Old 10-15-2015, 01:36 AM   #1
parmeet
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Rep: Reputation: Disabled
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
 
Old 10-15-2015, 12:53 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,356
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
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?
 
Old 10-15-2015, 01:28 PM   #3
parmeet
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-15-2015, 01:42 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,356
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
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.
 
Old 10-15-2015, 01:46 PM   #5
parmeet
LQ Newbie
 
Registered: Oct 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
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!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling the mobility in Wireless Sensor Networks using NS2 Zahraa Ayad Linux - Wireless Networking 3 03-04-2016 06:35 AM
optical mouse as a motion sensor - writting an aplication in C++ using Linux alexandre_fs Programming 6 01-27-2008 09:25 PM
USB Optical Mouse as Position Sensor fuzzyash Linux - Software 2 03-17-2007 12:35 AM
Need 'pie' mouse menu, forget what it's called tisource Linux - Software 1 02-25-2006 06:45 AM
FC3 Enabled clicking with the laptops mouse sensor...make it stop! DJOtaku Fedora 0 12-11-2004 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration