| View previous topic :: View next topic |
| Author |
Message |
dmitri926
Joined: 04 May 2006 Posts: 3
|
Posted: Thu May 04, 2006 3:06 am Post subject: Mouse scrolling feature |
|
|
Hi, I was looking to implement a mouse scrolling feature, it basically works like this: when you hold the left click and physically move your mouse vertically or horizontally, the page will also scroll vertically or horizontally. In addition, the cursor should freeze in its current place while you're scrolling untill left click is depressed.
My main issue is freezing the cursor in its current spot and yet still being able to get how much the mouseball moved, and correspond it to how much the page will scroll.
This technique might seem impractical to some people, but i have a trackball and it would make my daily job of scrolling through pdf's very easy. Can someone offer some suggestions on how to make this work? it would be very helpfull to all trackball users! |
|
| Back to top |
|
 |
evl
Joined: 24 Aug 2005 Posts: 1239
|
Posted: Thu May 04, 2006 4:50 pm Post subject: |
|
|
| I don't think it's really possible to fix the mouse and receive movement information (the best I can think of would be rapidly checking the mouse position then re-centering, but that would probably flicker badly). It would probably be more functional to replicate the middle mouse button press which usually enters a scrolling mode (e.g. in internet explorer) - it might work just to make a hotkey that does "Click, Middle". |
|
| Back to top |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 440 Location: Germany
|
Posted: Fri May 05, 2006 10:41 am Post subject: |
|
|
Hi,
I don't know a solution, but I'm sure it's possible.
AHK can't operate at driver level, but with the mouse driver (i.e. logitec) you can hold the middle mouse button and move your mouse. The cursor does not move, but the window unterneath scrolls in the direction you move your mouse.
DirectX games can be controled with the mouse. I'm sure, there's an more elegant way than recognizing the movement and reposition the mousecursor in the middle of the screen.
Perhaps there are dll-calls you can make to achive it.
Ciao
Micha |
|
| Back to top |
|
 |
dmitri926
Joined: 04 May 2006 Posts: 3
|
Posted: Fri May 05, 2006 3:18 pm Post subject: |
|
|
| So there's no easy way to implement this...i guess ill just stick with what i have now |
|
| Back to top |
|
 |
|