StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Rob  
#1 Posted : Tuesday, March 16, 2021 12:33:53 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
This plug-in will enable mouse wheel acceleration, so scrolling the mouse wheel quickly will amplify the distance of the scrolling when you scroll fast, or scroll at the normal speed when you scroll slowly.

https://www.strokesplus.net/files/MouseWheelAcceleration_Source_1.1.zip

That is the entire source of the plug-in, so feel free to change it as you like!

In the bin/Release folder is the plug-in, MouseWheelAcceleration.dll - you can just extract that file and add the plug-in to S+.

It supports a few properties to adjust the timing, multiplier/division values, and count cap (from this post https://hail2u.net/blog/coding/autohotkey-accelerate-wheel-scroll.html)
Code:
MouseWheelAcceleration.ResetMilliseconds = 40;
MouseWheelAcceleration.WheelCountCap = 40;
MouseWheelAcceleration.WheelCountDivide = 8
MouseWheelAcceleration.WheelCountMultiplier = 3

I set my timeout (ResetMilliseconds) to 40 milliseconds so it doesn't start to scroll too fast unless I scroll fast.
The other values shown above are their defaults, so you don't need to include them.

I put the above code in my Load tab.

Note that this binds to the asynchronous mouse event, so it does not interfere with the mouse wheel event (nor will it consume it), but I only send additional mouse wheel events if the wheelCount is greater than 1, so a single wheel scroll doesn't always send an extra one.

P.S. You might need to right-click the DLL and mark it as safe/unblock if you used Windows to extract the zip file.

IMPORTANT: You must check Options > Advanced > Enable Mouse Hook Event Subscription to allow the plug-in to subscribe to mouse events.

Edited by user Monday, March 22, 2021 7:48:51 PM(UTC)  | Reason: Updated download to version 1.1

halikjk  
#2 Posted : Tuesday, March 16, 2021 8:11:05 PM(UTC)
halikjk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/23/2019(UTC)
Posts: 6
United Kingdom

Is there any other setting that we have to set. Because it didn't work for me?

Edited by user Tuesday, March 16, 2021 8:11:43 PM(UTC)  | Reason: Not specified

Rob  
#3 Posted : Wednesday, March 17, 2021 4:03:40 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
Oh yeah I forgot, check this box:

Options > Advanced > Enable Mouse Hook Event Subscription
halikjk  
#4 Posted : Wednesday, March 17, 2021 8:09:55 AM(UTC)
halikjk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/23/2019(UTC)
Posts: 6
United Kingdom

Originally Posted by: Rob Go to Quoted Post
Oh yeah I forgot, check this box:

Options > Advanced > Enable Mouse Hook Event Subscription



If i enable this option, pc hangs too much especially using wheel.
Rob  
#5 Posted : Wednesday, March 17, 2021 11:02:02 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
Interesting.

What version of Windows are you using?

Are you using the installer version of S+ or portable?

Do you have any other programs running that hook the mouse?
(like AHK, etc.)
halikjk  
#6 Posted : Wednesday, March 17, 2021 2:10:19 PM(UTC)
halikjk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/23/2019(UTC)
Posts: 6
United Kingdom

Originally Posted by: Rob Go to Quoted Post
Interesting.

What version of Windows are you using?

Are you using the installer version of S+ or portable?

Do you have any other programs running that hook the mouse?
(like AHK, etc.)



Windows 10 1909.
Installer version od S+.
I'm not using any other programs that related to mouse or keyboard.
halikjk  
#7 Posted : Wednesday, March 17, 2021 2:22:04 PM(UTC)
halikjk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/23/2019(UTC)
Posts: 6
United Kingdom

For speed up or slow down which values we should change?
Rob  
#8 Posted : Wednesday, March 17, 2021 3:21:04 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
Honestly, I just copied the logic posted by misaki4650 from this post:

https://hail2u.net/blog/coding/autohotkey-accelerate-wheel-scroll.html

I haven't tried to tinker with the logic/values at all, but you can try changing some of the values I posted at the top and see what happens!



So when you say the PC hangs, what exactly happens?
Like do you get an hourglass type of cursor?
Do things just kind of stall until the mouse wheel messages are caught up?
Do you have any script in your Mouse Events > Mouse Wheel tab?
Rob  
#9 Posted : Friday, March 19, 2021 7:52:38 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
I am seeing it happen too under certain conditions, I will research and update this post when I have identified the cause.
Rob  
#10 Posted : Monday, March 22, 2021 7:50:35 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
Try S+ 0.4.2.1 and mouse acceleration 1.1 (I updated link above).

Changed the hooks and plug-in to use the ThreadPool instead of spinning up new threads for each event.

I'm not sure if it will make a difference, but let me know.
halikjk  
#11 Posted : Monday, March 22, 2021 8:26:26 PM(UTC)
halikjk

Rank: Newbie

Reputation:

Groups: Approved
Joined: 7/23/2019(UTC)
Posts: 6
United Kingdom

Originally Posted by: Rob Go to Quoted Post
Try S+ 0.4.2.1 and mouse acceleration 1.1 (I updated link above).

Changed the hooks and plug-in to use the ThreadPool instead of spinning up new threads for each event.

I'm not sure if it will make a difference, but let me know.




With "mouse acceleration 1.1" plugin mouse acceleration is unstable. Sometimes working sometimes not.
Rob  
#12 Posted : Tuesday, March 23, 2021 2:26:48 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 912
United States
Location: Tampa, FL

Thanks: 21 times
Was thanked: 255 time(s) in 222 post(s)
Can you provide any additional details?
What values do you have set?
How does the issue present?

It seems to be working fine for me.

Aside from that, have you noticed any hanging?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.