| View previous topic :: View next topic |
| Author |
Message |
TeeTwo
Joined: 29 Dec 2006 Posts: 123 Location: Australia
|
Posted: Wed Mar 26, 2008 7:41 am Post subject: How to Replace Ctr v |
|
|
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 |
|
 |
TeeTwo
Joined: 29 Dec 2006 Posts: 123 Location: Australia
|
Posted: Wed Mar 26, 2008 8:28 am Post subject: |
|
|
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 |
|
 |
CristiŽ
Joined: 29 Nov 2007 Posts: 42 Location: Romania
|
Posted: Thu Mar 27, 2008 2:11 am Post subject: |
|
|
this is good?
| Code: | ~Lbutton::
if (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 200)
Send, {Ctrl Down}{v}{Ctrl Up}
return |
_________________
 |
|
| Back to top |
|
 |
TeeTwo
Joined: 29 Dec 2006 Posts: 123 Location: Australia
|
Posted: Thu Mar 27, 2008 6:47 am Post subject: |
|
|
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 |
|
 |
TeeTwo
Joined: 29 Dec 2006 Posts: 123 Location: Australia
|
Posted: Mon Apr 07, 2008 10:26 pm Post subject: |
|
|
_________________ (The guy from Oz) |
|
| Back to top |
|
 |
|