| View previous topic :: View next topic |
| Is this script useful to you? |
| YES! |
|
25% |
[ 1 ] |
| NO! |
|
25% |
[ 1 ] |
| Somewhat |
|
50% |
[ 2 ] |
| Needs improvement (described in a posted reply) |
|
0% |
[ 0 ] |
|
| Total Votes : 4 |
|
| Author |
Message |
RG
Joined: 09 Feb 2005 Posts: 17 Location: United States
|
Posted: Thu Mar 17, 2005 4:02 pm Post subject: Web Browser Forward and Back with Mouse |
|
|
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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Thu Mar 17, 2005 4:40 pm Post subject: |
|
|
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.). _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
Guest
|
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2951 Location: Minnesota
|
Posted: Thu Mar 17, 2005 8:37 pm Post subject: |
|
|
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 |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Thu Mar 17, 2005 8:56 pm Post subject: |
|
|
| 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
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'  _________________ GitHub • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
DRSAMRAZA Guest
|
Posted: Fri Mar 18, 2005 12:34 am Post subject: |
|
|
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
|
Posted: Fri Mar 18, 2005 12:52 am Post subject: |
|
|
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:
- 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...
- 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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Fri Mar 18, 2005 1:25 am Post subject: |
|
|
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 .
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 |
|
 |
DRSAMRAZA Guest
|
Posted: Fri Mar 18, 2005 1:47 am Post subject: |
|
|
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
|
Posted: Fri Mar 18, 2005 2:12 am Post subject: |
|
|
Thanks! But... #2 can't be legal.
Anyway, #1 won't work for Linux.  |
|
| Back to top |
|
 |
RG
Joined: 09 Feb 2005 Posts: 17 Location: United States
|
Posted: Fri Mar 18, 2005 12:28 pm Post subject: Brower Wars |
|
|
Hello everyone! I didn't know I was starting the "war of the browsers" by beginning this post. 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!  _________________ RG |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2951 Location: Minnesota
|
Posted: Fri Mar 18, 2005 11:53 pm Post subject: |
|
|
Psst. I tried #2 and it didn't work.  |
|
| Back to top |
|
 |
lightbulb
Joined: 16 Mar 2005 Posts: 9
|
Posted: Sun Mar 20, 2005 6:34 pm Post subject: |
|
|
Freeware != warez
Lame. |
|
| Back to top |
|
 |
RG
Joined: 09 Feb 2005 Posts: 17 Location: United States
|
Posted: Sun May 01, 2005 2:49 am Post subject: The final version |
|
|
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.
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? _________________ RG |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1271
|
Posted: Sun May 01, 2005 10:18 am Post subject: |
|
|
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 |
|
 |
|