AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Browser Forward and Back with Mouse
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

Is this script useful to you?
YES!
25%
 25%  [ 1 ]
NO!
25%
 25%  [ 1 ]
Somewhat
50%
 50%  [ 2 ]
Needs improvement (described in a posted reply)
0%
 0%  [ 0 ]
Total Votes : 4

Author Message
RG



Joined: 09 Feb 2005
Posts: 17
Location: United States

PostPosted: Thu Mar 17, 2005 4:02 pm    Post subject: Web Browser Forward and Back with Mouse Reply with quote

I wrote a very useful little script which allows the user to go Back and Forward within his/her web browser by simply holding down a mouse button and clicking another.

I would greatly appreciate any suggestions/improvements on this script!

Code:

~RButton & LButton::              ;Hold down Right mouse button and CLICK left button to step BACK
   SetTitleMatchMode, 2
   IfWinActive, Firefox         ;Type the window title of your browser here! (if you don't use Firefox, you should! :-)  http://getfirefox.com)
   {   
      Send,!{Left}           ;Send Alt-Left Arrow keystroke
   }

   return

~LButton & RButton::              ;Hold down Left mouse button and CLICK Right button to step FORWARD.
   SetTitleMatchMode, 2
   IfWinActive, Firefox         ;Type the window title of your browser here!
   {
      Send,!{Right}         ;Send Alt-Right Arrow keystroke
   }
   return      


I also use Chris's MouseWheel alt-tab solution, which is a great timesaver.
See post http://www.autohotkey.com/forum/viewtopic.php?p=16359#16359
_________________
RG
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Thu Mar 17, 2005 4:40 pm    Post subject: Reply with quote

Hi,
I use IE which allows me to press the back/forward button on the toolbar to navigate, and pressing backspace steps back a page; there are alot of preset Windows Hotkeys.
-Useful script for new Autohotkey users (with FF.).
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest






PostPosted: Thu Mar 17, 2005 6:24 pm    Post subject: Reply with quote

Mouse Gestures - Firefox Extension

Mouse Gestures in Opera
Back to top
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Thu Mar 17, 2005 8:37 pm    Post subject: Reply with quote

Nice script. I made something similar a while ago, but I always found Backspace and Shift+Backspace more useful than mouse hotkeys.

@Titan: I hope you aren't trying to imply that IE has better hotkeys than FF or Opera! If not, apologies. To those it may concern, Alt+Left, Backspace, and toolbar buttons are common to all the browsers I know of.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Thu Mar 17, 2005 8:56 pm    Post subject: Reply with quote

jonny wrote:
@Titan: I hope you aren't trying to imply that IE has better hotkeys than FF or Opera! If not, apologies. To those it may concern, Alt+Left, Backspace, and toolbar buttons are common to all the browsers I know of.
IE is better than FF/Opera, infact, all Microsoft products are better than anything else (MSN Search > Google).

Only Joking Razz
I don't like FF because I'm not able to view certain pages correctly with it (commonly asp pages) but it could be something simple like my settings; I use IE because it's easy and 'mainstream' Wink
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DRSAMRAZA
Guest





PostPosted: Fri Mar 18, 2005 12:34 am    Post subject: Reply with quote

Not that this discussion has any thing to do with AHK, but when it comes down to BROWSERS, I just cant swallow what I am reading here.

Since the time Adam left the Heavens, and Noah took his journey to save living beings, the search was on for the best Internet Browser.

It stopped with Opera 7.54. Hands down, the best Browser ever created.

It is fast and reliable, gives you so many features other browsers can't even begin to come close to it.

If anybody likes IE. I am surprised. FF is good but not even close to what Opera can offer you. All you have to know is how to configure it.

Sorry! IE fans. You haven't lived if you haven't tried Opera.
Back to top
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Fri Mar 18, 2005 12:52 am    Post subject: Reply with quote

I agree that Opera is a very good internet browser, better than Firefox in fact, but for me the argument begins and ends with two simple FACTS:

  1. Firefox is free. Period. Opera may be free in a sense, but the free version is quite obviously flawed, which leads me to the second fact...
  2. Firefox, via the AdBlock extension, has nigh-flawless ad-blocking for all types of ads. Opera never bothered to try such a thing, to avoid the irony; THEY PUT THEIR OWN ADS IN!! (I never caps unless I'm really serious)


Tha's all there is to it. I'm a freeware junkie.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Fri Mar 18, 2005 1:25 am    Post subject: Reply with quote

I would probably use it if I didn't have an Intellimouse explorer mouse. I have the 2 side buttons on the mouse set for forward and back when running IE Smile.

I tried Opera, was disappointed with the ads and do not intend to pay for a browser..., I use FF on when using RedHat FC3 but prefer IE6 by far...
Back to top
View user's profile Send private message Visit poster's website
DRSAMRAZA
Guest





PostPosted: Fri Mar 18, 2005 1:47 am    Post subject: Reply with quote

If the Ad banner is the only problem for you guys. This is no problem

I have two solutions.

Number 1:
Try MyPopupKiller from http://nirsoft.mirrorz.com

It can disable Opera Ads and it is free

Number 2:
This is my secial offer for users of this forum

Try these registeration parameters

Moderator: Please do not post cracks or serial numbers. Thank you.

It just might work
Back to top
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Fri Mar 18, 2005 2:12 am    Post subject: Reply with quote

Thanks! But... #2 can't be legal. Laughing

Anyway, #1 won't work for Linux. Sad
Back to top
View user's profile Send private message
RG



Joined: 09 Feb 2005
Posts: 17
Location: United States

PostPosted: Fri Mar 18, 2005 12:28 pm    Post subject: Brower Wars Reply with quote

Hello everyone! I didn't know I was starting the "war of the browsers" by beginning this post. Very Happy I was simply putting up some useful (I thought) code for AHK, hoping for suggestions on improvements.

Obviously I'm a Firefox fan:
Yes, Firefox is great - it blocks popups, ActiveX trojans, etc, etc, etc... It has tabbed browsing, skinnable GUI, etc, etc..
But best of all, it gives MICROSOFT something to worry about! Laughing
_________________
RG
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Fri Mar 18, 2005 11:53 pm    Post subject: Reply with quote

Psst. I tried #2 and it didn't work. Shocked
Back to top
View user's profile Send private message
lightbulb



Joined: 16 Mar 2005
Posts: 9

PostPosted: Sun Mar 20, 2005 6:34 pm    Post subject: Reply with quote

Freeware != warez

Lame.
Back to top
View user's profile Send private message AIM Address
RG



Joined: 09 Feb 2005
Posts: 17
Location: United States

PostPosted: Sun May 01, 2005 2:49 am    Post subject: The final version Reply with quote

Here is my final version of the browser forward/back script:

Code:


~LButton & RButton::
   SetTitleMatchMode, 2
   IfWinActive, Firefox
   {   
      Send,!{Left}
   }

   return

~RButton & LButton::
   SetTitleMatchMode, 2
   IfWinActive, Firefox
   {
      Send,!{Right}
   }
   return      




I have been using it now for several weeks and it has become second nature. MUCH faster and simpler than using brower forward/back buttons. Exclamation

I reversed the forward/back modes because the Firefox context menu kept appearing. So I figured that was OK for the Forward command since it's not used as often.
Any suggestions on preventing the context menu from appearing?Idea
_________________
RG
Back to top
View user's profile Send private message
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Sun May 01, 2005 10:18 am    Post subject: Reply with quote

The context menu is appearing because you are allowing the default mouse action to happen by adding the tilde. Perhaps try sending {escape} after the right-click to cancel the menu showing?
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group