StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
capture mouse wheel while over taskbar without need for stroke button
Rank: Newbie
Groups: Approved
Joined: 11/24/2019(UTC) Posts: 4
|
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?
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/7/2023(UTC) Posts: 1
|
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));
}
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 11/24/2019(UTC) Posts: 4
|
I couldnt get it to work, but im new here so.... Seems it just doesnt trigger
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
capture mouse wheel while over taskbar without need for stroke button
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close