Welcome Guest.   Make a donation to an author on the site August 23, 2014, 10:24:59 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: close tab with right click in opera  (Read 4088 times)
kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« on: October 01, 2011, 08:15:00 AM »

hello

when I right click on the empty area of the webpage, I would like to close the current viewing tab in Opera

this right click closing, should not work when I have selected text, when I have put the cursor inside a text input box, when I right click on a graphics file, when I right click on a link, when I right click on a selected text etc

can anyone implement this?

thanks!!
« Last Edit: October 01, 2011, 10:47:02 AM by jgpaiva » Logged
AndyM
Charter Member
***
Posts: 615


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: October 01, 2011, 11:31:57 AM »

instead of having to check for "selected text, when I have put the cursor inside a text input box, when I right click on a graphics file, when I right click on a link, when I right click on a selected text etc", consider using a mouse rocker (hold down right button and click left button or hold down left button and click right button) to send the "close tab" command.

Then it becomes a very short and simple ahk script.
Logged
Ath
Supporting Member
**
Posts: 2,196



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: October 01, 2011, 11:42:20 AM »

IMHO, using the close button on the Tab is more intuitive then selecting a Close Tab entry from the context menu. But I removed all instances of Opera from my system, because I was never using them, so I can't even check if that button is there ohmy

Defining a mouse-gesture to close a tab should also be fairly easy, if it's not pre-defined.
Logged

Ath
Supporting Member
**
Posts: 2,196



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: October 01, 2011, 11:56:25 AM »

Defining a mouse-gesture to close a tab should also be fairly easy, if it's not pre-defined.

When browsing through the help I found this default mouse gesture:
Quote
Close tab   hold right button, move down then right
Just tested it with Opera 11.51, and it worked like a charm cheesy

Also tried in FF (7.0.1) with FireGestures add-in, and it has the same gesture doing that action thumbs up
Logged

Ath
Supporting Member
**
Posts: 2,196



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: October 01, 2011, 12:01:26 PM »

Just tested it with Opera 11.51
Yup, I re-installed Grin
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #5 on: October 01, 2011, 12:44:02 PM »

mouse rocker is already an option that I use in opera, but what I am asking is far more convenient imo

as for closing a tab by clicking the close button on the tab, is inconvenient because you have to move the mouse to the tab to close it
Logged
skwire
Moderator
*****
Posts: 4,028



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: October 02, 2011, 10:21:30 AM »

kalos, is the down-right mouse gesture suggestion good enough for your purposes?  If so, I'll mark this thread as solved.
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #7 on: October 02, 2011, 10:53:04 AM »

kalos, is the down-right mouse gesture suggestion good enough for your purposes?  If so, I'll mark this thread as solved.

mm, not really, because it is not that convenient (esp. when using touchpad) and because I use ahk scripts that prevent this
Logged
kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #8 on: October 07, 2011, 11:47:47 AM »

hello, any update to this?
Logged
skwire
Moderator
*****
Posts: 4,028



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: October 07, 2011, 11:51:02 AM »

@kalos: Your original request of a single right-click would be very difficult to do reliably.  How about a double-right-click or some other sort of modifier like ctrl-right-click, etc.?
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #10 on: October 07, 2011, 01:29:41 PM »

@kalos: Your original request of a single right-click would be very difficult to do reliably.  How about a double-right-click or some other sort of modifier like ctrl-right-click, etc.?

double click or even middle click would be the closest, but why single right click wouldn't be reliable?
Logged
skwire
Moderator
*****
Posts: 4,028



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: October 07, 2011, 01:37:18 PM »

double click or even middle click would be the closest, but why single right click wouldn't be reliable?

Because, when working externally with a web browser, it's difficult (if not impossible) to know what type of control the mouse is over.  Programmatically, it all looks like one large control instead of individual text boxes, edit fields, etc.  Does that make sense?
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #12 on: October 07, 2011, 01:47:26 PM »

double click or even middle click would be the closest, but why single right click wouldn't be reliable?

Because, when working externally with a web browser, it's difficult (if not impossible) to know what type of control the mouse is over.  Programmatically, it all looks like one large control instead of individual text boxes, edit fields, etc.  Does that make sense?

yup, but javascript can interact with webpage elements (maybe other languages too)
Logged
skwire
Moderator
*****
Posts: 4,028



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: October 07, 2011, 01:55:34 PM »

Here's an AHK snippet that will let you middle-click to close a tab in Opera:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1.  
  2. #IfWinActive, Opera ahk_class OperaWindowClass
  3. {
  4.    MButton:: SendInput, ^w
  5. }
Logged

kalos
Member
**
Posts: 999

View Profile Give some DonationCredits to this forum member
« Reply #14 on: October 07, 2011, 02:03:12 PM »

Here's an AHK snippet that will let you middle-click to close a tab in Opera:

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1.  
  2. #IfWinActive, Opera ahk_class OperaWindowClass
  3. {
  4.    MButton:: SendInput, ^w
  5. }

but it should not work when the cursor is inside text box, when text is selected, etc cheesy
I too think it's difficult, but thanks anyway!
Logged
skwire
Moderator
*****
Posts: 4,028



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: October 07, 2011, 02:10:50 PM »

but it should not work when the cursor is inside text box, when text is selected, etc cheesy
I too think it's difficult, but thanks anyway!

Change it to use a modifier like ctrl-middle-click:  ^MButton:: SendInput, ^w
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.067s | Server load: 0.28 ]