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 

How to make the middle mouse button to function as normal?

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



Joined: 31 Jan 2009
Posts: 4

PostPosted: Tue Jun 16, 2009 3:52 pm    Post subject: How to make the middle mouse button to function as normal? Reply with quote

I am currently using this scrip
Quote:
^e::ExitApp
~LButton:: ; Make the left mouse button a hotkey, but allow it to function as normal.
Coordmode, Mouse, Screen
MouseGetPos, xA, yA
Keywait, LButton, L
MouseGetPos, xB, yB
If (Abs(xA-xB) + Abs(yA-yB) > 10)
{
SendInput ^c ; Copy.
clipboard = %clipboard% ; Convert the cliboard contents to plain text.
}
return

MButton:: ; Make the middle mouse button a hotkey, and _don't_ allow it to function as normal.
SendInput ^v
Return ; Paste


why does the left mouse button function normally when assigned as a hotkey while the middle mouse don't?

The copy section of the code is perfect! but I have problem with programs such as firefox. When the code is activated i can no longer close tabs or to open up new links with the middle link...

is there any way to tell the script to make the middle mouse to paste only when the clicking area is a text box??? or something of that effect???
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Tue Jun 16, 2009 4:03 pm    Post subject: Reply with quote

Hotkeys
AHK Help File wrote:
You can use the following modifier symbols to define hotkeys:
~ When the hotkey fires, its key's native function will not be blocked (hidden from the system).
Back to top
View user's profile Send private message Visit poster's website
pinkkiss110



Joined: 31 Jan 2009
Posts: 4

PostPosted: Tue Jun 16, 2009 4:42 pm    Post subject: Reply with quote

Embarassed WOW!!! One character makes a huge difference!!!!!

THANKS FOR THE QUICK REPLY!!!!
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