Trigger ctrl+w with a right clic

Share your favorite FastKeys commands
Post Reply
acquafastkeys
Posts: 14
Joined: Feb 7th, ’21, 06:21

Post by acquafastkeys » Feb 7th, ’21, 09:29

Click, Left, , Down
Sleep, 200
Click, Left, , Up


sends

ctrl+w
(just in firefox)

which route should I follow to achieve this ?

thanks
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 7th, ’21, 09:40

Sorry, what do you want to do?
acquafastkeys
Posts: 14
Joined: Feb 7th, ’21, 06:21

Post by acquafastkeys » Feb 7th, ’21, 09:53

holding down right button of the mouse sends ctrl+w (close tab) to firefox
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 7th, ’21, 10:38

Shortcut: RButton
Type: Command

Code: Select all

KeyWait, RButton, T0.6    ; 0.6 msec
If ErrorLevel
  Send ^w
Else
  Send {Rbutton}
Window: ahk_class MozillaWindowClass
acquafastkeys
Posts: 14
Joined: Feb 7th, ’21, 06:21

Post by acquafastkeys » Feb 7th, ’21, 10:59

Thanks :-)
Post Reply