| View previous topic :: View next topic |
| Author |
Message |
pinkkiss110
Joined: 31 Jan 2009 Posts: 4
|
Posted: Tue Jun 16, 2009 3:52 pm Post subject: How to make the middle mouse button to function as normal? |
|
|
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 |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Tue Jun 16, 2009 4:03 pm Post subject: |
|
|
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 |
|
 |
pinkkiss110
Joined: 31 Jan 2009 Posts: 4
|
Posted: Tue Jun 16, 2009 4:42 pm Post subject: |
|
|
WOW!!! One character makes a huge difference!!!!!
THANKS FOR THE QUICK REPLY!!!! |
|
| Back to top |
|
 |
|