| View previous topic :: View next topic |
| Author |
Message |
tarc
Joined: 29 May 2006 Posts: 24
|
Posted: Fri Jun 08, 2007 7:22 pm Post subject: Right-click+Left-click and a sequence |
|
|
Hi,
I am attempting to make a script where if you press right+left button it copies a selection. I would like it to also paste with a right click, but I would want it to work only if right+left have been previously pressed.
Here is my try: (please don't laugh to hard)
| Code: |
lbutton::lbutton
~rbutton & lbutton::
Send, {Control down}{c}{Control up}
KeyWait, rbutton
Send, {Control down}{v}{Control up}
return
|
Any suggestions? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Jun 08, 2007 8:08 pm Post subject: |
|
|
there's alot that can be done here. You don't need lbutton::lbutton. Also, you might want the two keywaits, with the second one having the "d" option. _________________
(Common Answers) |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Fri Jun 08, 2007 8:56 pm Post subject: |
|
|
| It is not a good idea to make muse buttons modifiers ~rbutton &... They interfere with right click-down actions in games (Solitaire, FreeCell) and tray icon right click menus, among many other things. I could not find simple solutions, even with monitoring system messages. There are always some applications in which one of the mouse button functions was disturbed. I got the best results with telling my old mouse driver that there was no middle button, and it simulated one with left+right buttons. It does not work with my new Intellimouse Explorer, though. |
|
| Back to top |
|
 |
|