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 

Mouse scrolling feature

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
dmitri926



Joined: 04 May 2006
Posts: 3

PostPosted: Thu May 04, 2006 3:06 am    Post subject: Mouse scrolling feature Reply with quote

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
View user's profile Send private message
evl



Joined: 24 Aug 2005
Posts: 1239

PostPosted: Thu May 04, 2006 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 440
Location: Germany

PostPosted: Fri May 05, 2006 10:41 am    Post subject: Reply with quote

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
View user's profile Send private message
dmitri926



Joined: 04 May 2006
Posts: 3

PostPosted: Fri May 05, 2006 3:18 pm    Post subject: Reply with quote

So there's no easy way to implement this...i guess ill just stick with what i have now
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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