ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Universal Hand Tool for Scrolling

(1/2) > >>

skywalka:
Hi guys.

I've been using Adobe Reader a lot lately.  Now, when I am in any application that I need to scroll within (eg web browser) I find myself instinctively trying to use the handtool featured in Adobe Reader.  Problem is the hand tool is not universal.  And that's why I'm here.  Why can't the handtool be available whenever left-clicking is not going to perform any other function?

Thanx 4 looking.

Nighted:
Oh boy....you haven't heard of MouseImp?

Does just what you want. Make sure you use the proper DLL if you want Firefox functionality. Or you can use the Grab and Drag extension for Firefox.

Nod5:
Here's an AHK script that gives basic, vertical hand tool functionality when holding CAPS + right mouse button + dragging. It should work for all programs that use mousewheel up/down to scroll up/down. Change the sensitivity through the xsens variable in the code if needed. It's very limited though: no horizontal scrolling, no drag hand icon. So if you already have a mouse with a scrollwheel then it's not so very useful. Still it lets you do long scrolls a bit faster and with more "flow" I think.

By the way, Easy Window Dragging (that I built this upon) is extremely useful - try it anyone who hasn't yet.



--- ---; Easy Window Scrolling
; adapted from Easy Window Dragging
; http://www.autohotkey.com/docs/scripts/EasyWindowDrag.htm

CapsLock & RButton::
CoordMode, Mouse  ; Switch to screen/absolute coordinates.
MouseGetPos, EWD_MouseStartX, EWD_MouseStartY, EWD_MouseWin
WinGetPos, EWD_OriginalPosX, EWD_OriginalPosY,,, ahk_id %EWD_MouseWin%

SetTimer, EWD_WatchMouse, 10 ; Track the mouse as the user drags it.

xsens = 20     ;<------- change sensitivity here if needed
return

EWD_WatchMouse:
GetKeyState, EWD_RButtonState, RButton, P
if EWD_RButtonState = U  ; Button has been released, so drag is complete.
{
    SetTimer, EWD_WatchMouse, off
    return
}

; Otherwise, scroll to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, EWD_MouseX, EWD_MouseY
ychange := EWD_MouseStartY - EWD_MouseY
SetWinDelay, -1   ; Makes the below move faster/smoother.
if ychange > %xsens%
 SendInput {WheelDown}
if ychange < -%xsens%
 SendInput {WheelUp}


EWD_MouseStartX := EWD_MouseX  ; Update for the next timer-call to this subroutine.
EWD_MouseStartY := EWD_MouseY
return

skywalka:
Oh boy....you haven't heard of MouseImp?

Does just what you want. Make sure you use the proper DLL if you want Firefox functionality. Or you can use the Grab and Drag extension for Firefox.
-Nighted (August 13, 2007, 05:04 PM)
--- End quote ---
Thanx Nighted!

That's exactly what I'm looking for.
Here's an AHK script that gives basic, vertical hand tool functionality when holding CAPS + right mouse button + dragging. It should work for all programs that use mousewheel up/down to scroll up/down. Change the sensitivity through the xsens variable in the code if needed. It's very limited though: no horizontal scrolling, no drag hand icon. So if you already have a mouse with a scrollwheel then it's not so very useful. Still it lets you do long scrolls a bit faster and with more "flow" I think.

By the way, Easy Window Dragging (that I built this upon) is extremely useful - try it anyone who hasn't yet.
-Nod5 (August 14, 2007, 03:39 PM)
--- End quote ---
Nod5, that script is largely unresponsive for me.  Rather than troubleshoot, I'll stick with MouseImp for now.  But, thanx for taking the time to write post that.

Nod5:
Yes, I have to admit it's pretty dodgy after testing it again here.  ;D The right click context menu keeps popping up now and then even though it isn't supposed to. Not sure why. The script only took a few (fun) minutes to piece together from the Easy Window Dragging code so. I actually just recently discovered the Easy Window Dragging script and liked it a lot and had thought about expanding it somehow. So this was good practice. Other ways to expand it that I've since found really useful are: CAPS + middle mouse ---> minimize the window under the mouse pointer , CAPS + shift + move mouse = resize window under mouse pointer.

Navigation

[0] Message Index

[#] Next page

Go to full version