AutoHotkey Community

It is currently May 27th, 2012, 5:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 12  Next
Author Message
 Post subject: Stop Scrolling?
PostPosted: October 26th, 2010, 9:01 pm 
First, just like to say thanks a bunch for this script, it makes using my viliv s7 a lot more fun. My question, is there a way to stop/interrupt scrolling? My preferred method of using this is setting friction to zero so that the scrolling will continue until you hit the end of the page unless you interrupt it. I haven't figured out a way to interrupt that scrolling, not by clicking on the page or by try to grab and drag the opposite way. So, am I missing something or can this be implemented somehow?
Thanks again for the script, its awesome.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Stop Scrolling?
PostPosted: October 27th, 2010, 8:13 pm 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
Hoffmeyer wrote:
First, just like to say thanks a bunch for this script, it makes using my viliv s7 a lot more fun. My question, is there a way to stop/interrupt scrolling? My preferred method of using this is setting friction to zero so that the scrolling will continue until you hit the end of the page unless you interrupt it. I haven't figured out a way to interrupt that scrolling, not by clicking on the page or by try to grab and drag the opposite way. So, am I missing something or can this be implemented somehow?
Thanks again for the script, its awesome.


Hello, thanks for the kind words. This is not possible with the current implementation, however it's a relatively easy change. I had actually intended for you to be able to do just that; to click again to "catch" the drag and start scrolling again, but an oversight and the current momentum settings made me miss this.

I have made the changes so that this use case is possible, and will include them in the next release, which should be coming shortly. If you've installed v2.0+ you should get an automatic update notification when the script starts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Stop Scrolling?
PostPosted: October 28th, 2010, 1:21 am 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
cheek wrote:
Hoffmeyer wrote:
My preferred method of using this is setting friction to zero ... So, am I missing something or can this be implemented somehow?

I will include them in the next release, which should be coming shortly. If you've installed v2.0+ you should get an automatic update notification when the script starts.


Just posted version 2.1.
This version adds a lot of little changes, bugfixes, polish, and a few new features, including the ability to support zero friction and "catching" the fling.
See the first post and/or the readme.txt for a full list of changes.

Enjoy!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2010, 7:17 pm 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
Time for another update. Just posted v2.2 :)

This version replaces the settings menu for two new settings GUIs... This should be much easier for you to edit the many settings associated with this script, and should make using the compiled version easier to configure :)

The All Settings Gui
Dynamically lists every setting registered with the script. Think of this like a debug section, like firefox's "about:config". Changing the settings shown here immediately updates the variables in memory and writes your selections to the ini "General" section

App Settings Gui
This GUI was created to be the main interface to DtS settings, and should be pretty straight forward. Use the controls to apply settings and write them to the settings file. The dropdown at the top lists all the sections found in your settings file, and loads settings associated with that section. Use the "General" section to apply defaults, or simply type in an executable name and hit apply, to create that section and apply application specific setting overrides.

Settings overrides (aka sections) can match any of the following:
  • application executable name (notepad++.exe)
  • full application path (c:\Program Files\Notepad++\Notepad++.exe)
  • an application window class (NotePad++)
  • a CONTROL class (Scintilla2)

Use AHK's window spy to find application or control classes, or your task manager to find process names and pathes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks
PostPosted: November 7th, 2010, 2:12 pm 
Your update worked great; it even fixed a bug I hadn't mentioned yet. I'm sorry for not getting back to you sooner, this week has been insane. BTW do you have a way of accepting donations?

Thanks for the hard work


Report this post
Top
  
Reply with quote  
 Post subject: Thanks
PostPosted: November 8th, 2010, 4:26 pm 
Offline

Joined: October 13th, 2010, 3:28 am
Posts: 41
A couple of bugs
First appearing w/ v2.1, when launching the script .ahk file from a shortcut (in the start up folder or pinned to start menu) I get the error
Code:
#Include file "ini.ahk" cannot be opened.
DtS launched fine at start up prior to v2.1

When using the .exe and changing from RButton to MButton in the 'DtS All Settings' panel
Code:
Error: Nonexistent Hotkey.  The Current thread will exit.
Specifically: MButton
Line#
2102: Hotkey,%Button%,On
The setting eventually went through, but I'm not sure how|why.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Thanks
PostPosted: November 8th, 2010, 8:33 pm 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
Hoffmeyer wrote:
Your update worked great; it even fixed a bug I hadn't mentioned yet. I'm sorry for not getting back to you sooner, this week has been insane. BTW do you have a way of accepting donations?

Thanks for the hard work
Thank you. It's flattering you'd consider donating, but I do not have any way to accept them. I have long considered eventually having a paypal donate button, but haven't felt the need or a place to put it :) Maybe once I finally finish that website I've been telling myself I'll work on ;)


MainTrane wrote:
A couple of bugs
First appearing w/ v2.1, when launching the script .ahk file from a shortcut (in the start up folder or pinned to start menu) I get the error
Code:
#Include file "ini.ahk" cannot be opened.
DtS is looking in the "current directory" for ini.ahk, when you run the AHK from explorer, the current directory is the one that holds the file... but when you run from a shortcut, the directory is set in the shortcut properties. Right click on the shortcut, and choose Properties. Set the "Start In" box to the directory containing DragToScroll.ahk. I believe this should fix it.. I can also make a small change to avoid this going forward, so that its forced to look in the script directory for it..
Code:
From:   #Include ini.ahk
To:     #Include %A_ScriptDir%\ini.ahk


MainTrane wrote:
When using the .exe and changing from RButton to MButton in the 'DtS All Settings' panel
Code:
Error: Nonexistent Hotkey.  The Current thread will exit.
Specifically: MButton
Line#
2102: Hotkey,%Button%,On
The setting eventually went through, but I'm not sure how|why.
Thank you, this is an issue. It happens because the "All Settings" dialog directly changes the settings in memory without properly deleting and recreating the hotkey binding when the value changes. However, if you simply reload the script, the old hotkeys are destroyed and the script should work fine. This issue should only happen just after you make this change in All Settings, and will not come back unless you change it again. I will think about how to correct this, and include it in the next update.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Thanks
PostPosted: November 8th, 2010, 9:21 pm 
Offline

Joined: October 13th, 2010, 3:28 am
Posts: 41
cheek wrote:
Thank you, this is an issue. It happens because the "All Settings" dialog directly changes the settings in memory without properly deleting and recreating the hotkey binding when the value changes. However, if you simply reload the script, the old hotkeys are destroyed and the script should work fine. This issue should only happen just after you make this change in All Settings, and will not come back unless you change it again. I will think about how to correct this, and include it in the next update.
Thanks Cheek, great work as always on DtS.

cheek wrote:
I have considered an addition where the scroll speed would automatically adjust, on windows where scrollbar info is available, using the default otherwise; I have not yet looked into this, but I'll keep it in mind :)
This is the function I'd most like to see as you continue to improve DtS. Maybe it could be a goal for v3.0


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2010, 12:50 am 
I just updated to the latest version and the same problem came back. Any ideas?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2010, 7:11 pm 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
Whoops! Not sure how I reintroduced that, none of the changes were even related to scrolling or momentum, it was all settings and GUI stuff.

I've started to go back and undo the changes from that version, to try to narrow it down. Not sure how I'd ever find it without version control! ;) Still no luck yet, but running out of options; I'll finish up when I have a chance, and post a bugfix release soon.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2010, 1:37 am 
Offline

Joined: April 1st, 2009, 8:32 pm
Posts: 71
Ok, figured out the recent bugs...

Posted 2.21, which contains miscellaneous bugfixes from 2.2, including those reported above by Hoffmeyer and MainTrane



MainTrane wrote:
cheek wrote:
I have considered an addition where the scroll speed would automatically adjust, on windows where scrollbar info is available, using the default otherwise; I have not yet looked into this, but I'll keep it in mind :)
This is the function I'd most like to see as you continue to improve DtS. Maybe it could be a goal for v3.0

I have taken a second look at this, and I have a working demo where the scroll speed is automatically adjusted for long documents. So far I'm not too happy with the results, and I'm thinking it's probably not going to make it into the main version.

The problem is that grabbing scrollbar information just isn't widely supported enough to yield consistent results. Some apps also report incorrect scrollbar info--At least 3 of the apps i use regularly are WRONG, and lots more don't work. Its also possible that you do not always WANT to scroll a bigger document faster (e.g. IM history).

The bottom line is that the elegant handling of scroll speed I had pictured just isn't possible, and what does work isn't worth the overhead or complexity. I've found its just easier to use acceleration or the "Fast Mode" speed toggle to quickly get around long docs.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2010, 12:01 am 
cheek wrote:

MainTrane wrote:
a setting that hides the mouse cursor when scrolling/dragging with the left or right buttons. This enables 'infinite scrolling', where the user can drag the mouse to scroll infinitely, by keeping the cursor in place. That would override WheelKey switching to other active (portions of) windows.
this is certainly possible, and a good idea, but: I've tried forcing the mouse cursor to stay put, but that interferes with the dragging (and now movement checking) because, well, the mouse isn't moving. It's just not compatible with the way this is set up. I imagine that for that type of implementation, because the mouse pointer does not move, you need to track when it is moving, by receiving WM_MOUSEMOVE maybe, and keeeping track of all the positions yourself. It's just not really in the scope of this script.


if this script had this, it would be perfect. no joke.

does anyone know of any script or program that has this capability? besides the buggy as hell one...

thanks!


Report this post
Top
  
Reply with quote  
 Post subject: Thank You So, So Much!
PostPosted: February 7th, 2011, 7:56 am 
You have no idea how long I have been waiting for this application. Thank you for developing and maintaining this app. You are a gentleman and a scholar! :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2011, 5:57 pm 
Offline

Joined: February 7th, 2011, 5:54 pm
Posts: 1
Anonymous wrote:
cheek wrote:

MainTrane wrote:
a setting that hides the mouse cursor when scrolling/dragging with the left or right buttons. This enables 'infinite scrolling', where the user can drag the mouse to scroll infinitely, by keeping the cursor in place. That would override WheelKey switching to other active (portions of) windows.
this is certainly possible, and a good idea, but: I've tried forcing the mouse cursor to stay put, but that interferes with the dragging (and now movement checking) because, well, the mouse isn't moving. It's just not compatible with the way this is set up. I imagine that for that type of implementation, because the mouse pointer does not move, you need to track when it is moving, by receiving WM_MOUSEMOVE maybe, and keeeping track of all the positions yourself. It's just not really in the scope of this script.


if this script had this, it would be perfect. no joke.

does anyone know of any script or program that has this capability? besides the buggy as hell one...

thanks!


"Marble Mouse Scroll Wheel" implements this quite well (the cursor stop moving when you hold the assigned button, so that you can keep on scrolling), but I am not sure if it works on non-trackball device.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2011, 11:37 am 
Offline

Joined: October 9th, 2006, 9:27 am
Posts: 21
This is a brilliant replacement for SmartScroll i use on Mac. The only issue is that in the Firefox 4 beta on Win7 only Wheelkey scrolling method works, and it's not very precise and comfortable, though does its job. could you please make an update to support other methods too? With FF 3.x there's no such problem.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 12  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, sks and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group