maybe you use xbindkeys?
"xdotool mousedown 1"
b:49+1
"xdotool mouseup 1"
b:49+Release+1 "xdotool mousedown 1"
b:49+1
"xdotool mouseup 1"
b:49+Release+1 cat .xbindkeysrc
"xdotool click 1"
Alt_R
"xdotool click 3"
Menu
xset -r 108
xset -r 135
pkill xbindkeys && xbindkeys
but I wish dragging a mouse click would also work.