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 Replace Ctr v

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



Joined: 29 Dec 2006
Posts: 123
Location: Australia

PostPosted: Wed Mar 26, 2008 7:41 am    Post subject: How to Replace Ctr v Reply with quote

If I have information copied to the clipboad, Can I replace Ctrl v with a left mouse click to gain the position and another left mouse click to insert the clipboard content.

Thanks in advance for any solution

Terry
_________________
(The guy from Oz)
Back to top
View user's profile Send private message
TeeTwo



Joined: 29 Dec 2006
Posts: 123
Location: Australia

PostPosted: Wed Mar 26, 2008 8:28 am    Post subject: Reply with quote

I have just had an idea, correct me if I am wrong or if there is a better way.
If the script detects a leftmouse click it checks if there is content in the clipboard if so then the script jumps to a routine that is looking for a second click. A timeout will negate a false positive. If there is content and a second click then the ctrl v is sent.

I will try and tidy that up and see how it goes.

Terry
_________________
(The guy from Oz)
Back to top
View user's profile Send private message
CristiŽ



Joined: 29 Nov 2007
Posts: 42
Location: Romania

PostPosted: Thu Mar 27, 2008 2:11 am    Post subject: Reply with quote

this is good?

Code:
~Lbutton::
    if (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 200)
       
        Send, {Ctrl Down}{v}{Ctrl Up}
return

_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TeeTwo



Joined: 29 Dec 2006
Posts: 123
Location: Australia

PostPosted: Thu Mar 27, 2008 6:47 am    Post subject: Reply with quote

Thanks for script. Actually I got working what I wanted with this script

Code:


Clipboard=
Clipwait

KeyWait,LButton,D
sleep, 200

send,%Clipboard%
;msgbox, %Clipboard%

ExitApp


I am developing a application in Rapidq to Control Windows instead of Favourites, addresses in a mail client, Application launcher, Windows system controller etc. All I can do easily in RQ which is a semi VB programming language however to control hot keys requires a lot of code.

I will compare your script with mine, There is a reason for the way i am using the script as I call it from my program briefly.

I find that the combination of Rapidq and AHK is fabulus and I use it to monitor print output for the Universal Ink Monitor I created at Http://inkmon.org.

RQ is much better for interpreting VB code.

If I use your version I will let you know and give you a copy of the full version of Control_It. which is the program. If you are interestied to beta test it you can at http://inkmon.org/Control wher the first versions are located for my other testers.

The versions are time limited and will be reset each month untill the final release is made. Actually all beta testers who declare themselves will get free final versions.

Contact is on the site


Why TeeTwo Thats the name of my sweet little dog

Terry
_________________
(The guy from Oz)
Back to top
View user's profile Send private message
TeeTwo



Joined: 29 Dec 2006
Posts: 123
Location: Australia

PostPosted: Mon Apr 07, 2008 10:26 pm    Post subject: Reply with quote


_________________
(The guy from Oz)
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