LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2010, 09:53 AM   #1
neo2k
LQ Newbie
 
Registered: Aug 2008
Posts: 21

Rep: Reputation: 15
Right Mouse button click- bash script


Hi All,

how do i write a bash script to mimic my right button click..

any ideas or command names to steer in the right direction would be of great help.

Thanks
Neo
 
Old 07-09-2010, 10:12 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,253

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
You may wish to give a little more detail, ie what sort of right click functionality are you looking for?
Depending on where the mouse is can change this quite dramatically.
 
Old 07-09-2010, 10:28 AM   #3
neo2k
LQ Newbie
 
Registered: Aug 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks grail, let me provide you with some details..

one of the in house company software shows a window after the analysis is done , this window is of fixed width and height so i know the boundary to operate.

After the window comes up what i have been doing lately is to right click on each of the iterations and it gives number of options and i select the options to export it to a particular file and use it further for my analysis.

I am trying to automate the above sequence through bash scripting. i cannot install xte to do the above thing because of company policy and all that.

1) Right click
2) go to third option
3) press ok on the small window that pops up.

Hopefully i was clear, if not i will try to rephrase.
 
Old 07-09-2010, 10:42 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,253

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Well I am not a 100% sure if there are any bash calls that would directly call say the mouse driver to mimic a right click, like in say C or C++, but
I was more thinking that if you could provide the end result of what happens as part of right clicking, for example

Right clicking and choosing an option will echo information from/to a file

Then with the likes of grep and/or other tools you could achieve the same thing.

If it is more the direct call you are after then maybe someone else will be able to help.
 
  


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
KDE and right click with one button mouse barbar Slackware 5 02-04-2012 02:00 PM
Execute a php or sql script by button click stranger_6_7 Linux - General 3 02-02-2007 09:24 PM
mapping Logitech mouse thumb button to double-click buldir Linux - Hardware 3 12-04-2004 10:11 PM
Assigning 'double-click' to a specific mouse button theMonkeY Linux - Hardware 1 09-06-2004 08:11 AM
Command line way to click a mouse button. danielw Linux - General 6 09-02-2003 04:52 AM


All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration