AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Right-click+Left-click and a sequence

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
tarc



Joined: 29 May 2006
Posts: 24

PostPosted: Fri Jun 08, 2007 7:22 pm    Post subject: Right-click+Left-click and a sequence Reply with quote

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
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jun 08, 2007 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Fri Jun 08, 2007 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group