LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-13-2009, 11:21 AM   #1
neo2k
LQ Newbie
 
Registered: Aug 2008
Posts: 21

Rep: Reputation: 15
Lightbulb LINUX GURUS..any idea on scripting for a right click ..


Hi All,

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

we have a design software which gives results based upon our conditon, and we can right click and it will show options to export as a particular file, As i want to do the above sequence for several iterations,

is there any way i can write a bash script for the above sequence?

is it possible? any ideas would be greatly appreciated.

if you guys want any more info or better explanation of the situation..do let me know...i just want an idea or a path to go to...

Thanks

Last edited by neo2k; 03-13-2009 at 11:41 AM. Reason: updated
 
Old 03-13-2009, 01:15 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by neo2k View Post
Hi All,

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

we have a design software which gives results based upon our conditon, and we can right click and it will show options to export as a particular file, As i want to do the above sequence for several iterations,

is there any way i can write a bash script for the above sequence?

is it possible? any ideas would be greatly appreciated.

if you guys want any more info or better explanation of the situation..do let me know...i just want an idea or a path to go to...

Thanks
Try to run xev (the x event monitor), from the command line, then right-click. It should give you a control code for that event, and your bash script can send it.
 
Old 03-13-2009, 02:09 PM   #3
neo2k
LQ Newbie
 
Registered: Aug 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
Try to run xev (the x event monitor), from the command line, then right-click. It should give you a control code for that event, and your bash script can send it.
Thanks TBone , let me try that.

one more thing if my right click gives options, how do i script that selection
 
Old 03-13-2009, 03:26 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by neo2k View Post
Thanks TBone , let me try that.

one more thing if my right click gives options, how do i script that selection
That I don't know, but if you need to do this, I'd leave behind xev, and try to look at the code of the web page, to determine what gets sent back to select the sub-options on the menu. You can just send THAT code, then, and bypass the whole right-click thing.
 
Old 03-13-2009, 03:37 PM   #5
neo2k
LQ Newbie
 
Registered: Aug 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
That I don't know, but if you need to do this, I'd leave behind xev, and try to look at the code of the web page, to determine what gets sent back to select the sub-options on the menu. You can just send THAT code, then, and bypass the whole right-click thing.
The problem is its not a web page..its an inbuilt company software once the whole simulation is done , i want to right click and export every iteration result as file.

and i don;t have the source code for that, thats the reason i was asking the question before.

xev doesn;t seem to be efficent in my case.

Any other ideas///
 
Old 03-13-2009, 04:15 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by neo2k View Post
The problem is its not a web page..its an inbuilt company software once the whole simulation is done , i want to right click and export every iteration result as file.

and i don;t have the source code for that, thats the reason i was asking the question before.

xev doesn;t seem to be efficent in my case.

Any other ideas///
Yeah, xev is kind of a quick-and-dirty solution. But if it's an application that was built in your company, they MUST have the source code around, and could point you to it. Bash may not be the best thing to do this in, though....
 
  


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
To all Linux Gurus rajendrapoudel LinuxQuestions.org Member Intro 1 08-05-2008 07:02 PM
Good idea/bad idea: interface colors introuble General 5 10-30-2006 02:33 PM
LXer: Freespire: Great Idea? Awful Idea? LXer Syndicated Linux News 1 05-04-2006 07:10 AM
Linux Gurus please contact me ashleyi LinuxQuestions.org Member Intro 1 01-19-2006 03:50 PM
scripting a mouse movement and click & mozilla full screen kingshrimp Linux - Software 2 11-26-2003 08:02 AM


All times are GMT -5. The time now is 06:47 AM.

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