KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Commands for scrolling with the mouse wheel
Topic Summary:
Created On: 05/07/2021 12:50 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Commands for scrolling with the mouse wheel   - thalon - 05/07/2021 12:50 PM  
 Commands for scrolling with the mouse wheel   - wristofdoom - 05/07/2021 01:39 PM  
 Commands for scrolling with the mouse wheel   - thalon - 05/10/2021 01:26 PM  
 Commands for scrolling with the mouse wheel   - Lunis Orcutt - 05/07/2021 05:45 PM  
 Commands for scrolling with the mouse wheel   - brooklyn cabin - 05/27/2021 11:51 AM  
 Commands for scrolling with the mouse wheel   - wristofdoom - 05/07/2021 06:33 PM  
 Commands for scrolling with the mouse wheel   - Mphillipson - 05/09/2021 11:16 AM  
 Commands for scrolling with the mouse wheel   - Edgar - 05/09/2021 12:35 PM  
 Commands for scrolling with the mouse wheel   - kkkwj - 05/10/2021 02:09 AM  
Keyword
 05/07/2021 01:39 PM
User is offline View Users Profile Print this message

Author Icon
wristofdoom
Top-Tier Member

Posts: 347
Joined: 09/03/2020

This is great. I needed something like this. I am mostly writing in Jarte where the page up and page down functions move the cursor instead of just moving the page view. I have been relying on the mouse to scroll the page down.

However, I think there's an error in the mouse wheel up code. It seems to be the same as the mouse wheel down code.

I fixed it by changing "-120" to "120"


---


Command: mouse wheel <1to100> up

Declare Function mouse_event Lib "user32.dll" (ByVal dB As Long, ByVal dX As Long, ByVal dY As Long, ByVal dP As Long, ByVal dE As Long) As Long


Sub Main

dist = CInt(ListVar1)

mouse_event(&H800,0,0,120*dist,0)

End Sub

-------------------------

Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017.

 05/10/2021 01:26 PM
User is offline View Users Profile Print this message

Author Icon
thalon
Senior Member

Posts: 115
Joined: 03/19/2015

Originally posted by: wristofdoom However, I think there's an error in the mouse wheel up code. It seems to be the same as the mouse wheel down code. I fixed it by changing "-120" to "120"

Oh yes, sorry, that was my fault. I copied and pasted the code below into the text (from above, not from the command center) and the error crept in. Thanks for the correction!

Statistics
32529 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 438 guests browsing this forum, which makes a total of 440 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.