Click to See Complete Forum and Search --> : Mouse wheel in Netscape!


Strike
02-09-2000, 05:44 AM
I found a tip on Linux.com the other day that tells you how to sort of kludge your way to mouse wheel support in Netscape (which seems not to be native, even if you have imwheel installed and running). Here's the fix. You add the following lines to your ~/.Xdefaults file and voila!
Here they are:

Netscape*drawingArea.translations: #replace \
<Btn1Down>: ArmLink() \n\
<Btn2Down>: ArmLink() \n\
~Shift<Btn1Up>: ActivateLink() \n\
~Shift<Btn2Up>: ActivateLink(new-window) \
DisarmLink() \n\
Shift<Btn1Up>: ActivateLink(save-only) \
DisarmLink() \n\
Shift<Btn2Up>: ActivateLink(save-only) \
DisarmLink() \n\
<Btn1Motion>: DisarmLinkIfMoved() \n\
<Btn2Motion>: DisarmLinkIfMoved() \n\
<Btn3Motion>: DisarmLinkIfMoved() \n\
<Motion>: DescribeLink() \n\
<Btn3Down>: xfeDoPopup() \n\
<Btn3Up>: ActivatePopup() \n\
Ctrl<Btn4Down>: PageUp()\n\
Ctrl<Btn5Down>: PageDown()\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>: LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n \
None<Btn5Down>: LineDown()LineDown()LineDown()LineDown()LineDown() LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\
Alt<Btn5Down>: xfeDoCommand(back)\n
Netscape*globalNonTextTranslations: #override\n\
Shift<Btn4Down>: LineUp()\n\
Shift<Btn5Down>: LineDown()\n\
None<Btn4Down>:LineUp()LineUp()LineUp()LineUp()Lin eUp()LineUp()\n\
None<Btn5Down>:LineDown()LineDown()LineDown()LineD own()LineDown()LineDown()\n\
Alt<Btn4Down>: xfeDoCommand(forward)\n\

Tot31
02-09-2000, 12:00 PM
I just use imwheel...and it works with kde as well. http://www.linuxnewbie.org/ubb/smile.gif

Strike
02-09-2000, 01:11 PM
Well, like I said - even with imwheel, my Netscape was not letting me use my mouse wheel (yes, it's the latest version too http://www.linuxnewbie.org/ubb/smile.gif). Other apps were supporting it no problem, but Netscape was not. I use GNOME/E, but I sorta doubt that has anything to do with it as the GNOME and E programs I use support the mouse wheel as well.

AMDForge
02-09-2000, 01:21 PM
Ok, this is probably one I should have learned by now, but hey, gotta learn it sometime. Ok, imwheel, groovy, now I can try to fire up my wheel. (Been missing it). However, I have a graphical login set, and imwheel wants to link, X won't let it, yada, yada. OK. Two questions now: how can I 'dir /S' to find imwheel, and how can I fire it up inside of an already-running X?

Strike
02-09-2000, 04:15 PM
Well, mine loads on startup (I think it uses its own version of gpm), so I've never had to load it within X. When you compiled it, were you root? I'm not sure what you mean when you say that X wants to link and it won't let you. The possibility that you may not have permission to (from not being root) is the only thing I can think of. But, as I saw in the README, you can start an imwheel session simply by running "imwheel -k" (the "-k" flag kills any previous imwheel sessions that were running to avoid conflicts). As for the "dir /S" command you refer to (is that a DOS flag? I'm not familiar with that switch.), if you want to find where "imwheel" went when you compiled it you can choose from a TON of finding utilities. In a terminal window you can choose:

whereis imwheel
find imwheel
locate imwheel
which imwheel

...any of those should be fine (though I recommend the middle two). Of course, I think those commands only search a limited path, so you may want to do some recursive "ls" and pipe it to "grep" for imwheel to get the best results. (I can hack this up if you need).

But, to be perfectly honest, I don't know how I got it to auto-start though I imagine it had to do with my compiling of imwheel. Check the README, it has gobs and gobs of good information that I would have otherwise overlooked (like changing "Emulate3Buttons" to "Buttons 3", etc). Your answer might be in there somewhere.

Oh, and a note to everyone - this script seems to have the nasty habit of clipping text sometimes when using the wheel to scroll back up a page. You can fix it by simply using the scrollbar instead. Or, if you are really lazy (like me), just highlight the text and then un-highlight it and it should be legible http://www.linuxnewbie.org/ubb/smile.gif

[This message has been edited by Strike (edited 09 February 2000).]

Sterling
02-09-2000, 07:04 PM
Actually, for find, I think its:
find -name imwheel -print
(from the root directory or wherever you want to start searching)
Use info find for more data.
Note that for locate, you need to have an updated locate DB. If you've just installed the package and want to find it with locate, type updatedb & as root and wait for it to finish.


------------------

-Sterling
"A mere accumulation of observational evidence is not proof"
-Death, Terry Pratchett's Hogfather.

reas0n
02-12-2000, 04:29 AM
Does this require imwheel? Because I've done what you described above, and it still doesn't work.

Strike
02-12-2000, 07:00 PM
I do believe that it does require imwheel. Can I tell you for sure that it does/does not? No, I can't. I've had imwheel running for a while and after I had imwheel installed and running is when I put that script in. One thing I can tell you is that it ought to work once you have imwheel installed. If not, then reply back here.

Another thing I've noticed - I think that once you use Messenger that this functionality stops working until... well, I haven't figured out how to reset it, so - until I reboot. I think I tried restarting "gpm" with no luck, but I might not have. But, it stops working at some point, and I think it's only AFTER using Messenger.

reas0n
02-13-2000, 01:13 AM
Success!! I have finally justified my shiny new IM Explorer. Sitting in front of my computer, legs up on the table, mouse on my leg, sufin' the internet. oh yeah! Strike, I want to have your baby.

Strike
02-13-2000, 10:27 PM
Erm... thanks. I guess. But, I'll pass http://www.linuxnewbie.org/ubb/wink.gif

Strike
06-13-2001, 01:36 PM
*big fat bump for IEraseU*