RButton simple script incorrect work Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
monatilda23
Posts: 26
Joined: 25 Jan 2022, 10:24

RButton simple script incorrect work

Post by monatilda23 » 25 Jan 2022, 11:29

Hi everyone, can you help me with my script

I wrote this to make Windows10 apps layout easier
from the original shortcut [win + arrow] I want it to be a combination of [RClick and wheel] (up and down to Left and Right)

Code: Select all

RButton & WheelDown::
Send #{Right}

Return


it works, but after app is moved as expected, the RButton on mouse is not responsive anymore.
What can I do to make it work after the script launched?

I suggest there might be tweaks with pressed\unpressed but I don't understand how to combine that with regular commands

thanks a lot

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: RButton simple script incorrect work

Post by mikeyww » 25 Jan 2022, 11:37

Since the prefix key becomes blocked (loses native function), you can add a new hotkey.

Code: Select all

RButton::RButton
Explained: Custom Combinations

monatilda23
Posts: 26
Joined: 25 Jan 2022, 10:24

Re: RButton simple script incorrect work

Post by monatilda23 » 25 Jan 2022, 11:43

hi @mikeyww thank you so much for the suggestion. I added the line to my script and now it works as expected.
So now the script looks like this and it performs great

Code: Select all

RButton & WheelDown::
Send #{Right}
RButton::RButton

Return
hope this help for someone else too.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: RButton simple script incorrect work  Topic is solved

Post by mikeyww » 25 Jan 2022, 11:51

Good to hear. I would code it this way.

Code: Select all

RButton & WheelDown::Send #{Right}
RButton::RButton

monatilda23
Posts: 26
Joined: 25 Jan 2022, 10:24

Re: RButton simple script incorrect work

Post by monatilda23 » 25 Jan 2022, 11:58

unfortunately new problem occurred. For some reason after the script keys are pressed, the LButton becomes unresponsible for a while.

UPD I don't know why but with the latest revision proposed

Code: Select all

RButton & WheelDown::Send #{Right}
RButton::RButton
now it works fine. No interrupts

pure magic, thanks a lot @mikeyww

Post Reply

Return to “Ask for Help (v1)”