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

Notification

Icon
Error

Options
Go to last post Go to first unread
axa  
#1 Posted : Sunday, November 19, 2023 9:46:39 PM(UTC)
axa

Rank: Newbie

Reputation:

Groups: Approved
Joined: 11/24/2019(UTC)
Posts: 4
United States

Anyone ever use a program called Volumouse?
It was possible to for example control volume when capturing mouse wheel, without any capture button, but only while over the taskbar as an example.
I'd like to mimic this sort of function but hoping someone might have done it already?
Mikas  
#2 Posted : Thursday, December 7, 2023 6:01:40 PM(UTC)
Mikas

Rank: Newbie

Reputation:

Groups: Approved
Joined: 12/7/2023(UTC)
Posts: 1
Lithuania

Hi, I actually needed the same functionality after working with Bettermousetools in MacOS. Here is a mousewheel script as, which uses scroll wheel on the top taskbar to switch desktops (workspaces)



Code:

if(parseInt(wheel.Y) <= (parseInt(wheel.Window.Screen.WorkingArea.Top))) { //is the mouse higher than work area, which is my top taskbar
// if you need bottom taskbar, just change WorkingArea.Top to WorkingArea.Bottom and <= to >=
        if(wheel.Delta > 0) {
            //mouse wheel scrolled up
            sp.SendModifiedVKeys([vk.LCONTROL,vk.LWIN], [vk.LEFT]); //send a shortcut Ctrl-Win-LeftArrow when scrolled up
        } else {
            //mouse wheel scrolled down
            sp.SendModifiedVKeys([vk.LCONTROL,vk.LWIN], [vk.RIGHT]); //send a shortcut Ctrl-Win-RightArrow when scrolled down
        }
    } else {
        //Default, pass mouse wheel message onto the original control
        wheel.Control.PostMessage(host.cast(uint, 0x020A), new IntPtr(wheel.WParam), new IntPtr(wheel.LParam));
    }
axa  
#3 Posted : Thursday, December 7, 2023 7:48:58 PM(UTC)
axa

Rank: Newbie

Reputation:

Groups: Approved
Joined: 11/24/2019(UTC)
Posts: 4
United States

I couldnt get it to work, but im new here so....
Seems it just doesnt trigger
Users browsing this topic
Guest
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.