AutoHotkey Community

It is currently May 26th, 2012, 6:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: June 16th, 2009, 4:52 pm 
Offline

Joined: January 31st, 2009, 3:32 pm
Posts: 4
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???


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2009, 5:03 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2009, 5:42 pm 
Offline

Joined: January 31st, 2009, 3:32 pm
Posts: 4
:oops: WOW!!! One character makes a huge difference!!!!!

THANKS FOR THE QUICK REPLY!!!!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], rbrtryn and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group