AutoHotkey Community

It is currently May 26th, 2012, 4:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to Replace Ctr v
PostPosted: March 26th, 2008, 8:41 am 
Offline

Joined: December 29th, 2006, 6:57 am
Posts: 123
Location: Australia
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 26th, 2008, 9:28 am 
Offline

Joined: December 29th, 2006, 6:57 am
Posts: 123
Location: Australia
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 3:11 am 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
this is good?

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2008, 7:47 am 
Offline

Joined: December 29th, 2006, 6:57 am
Posts: 123
Location: Australia
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2008, 11:26 pm 
Offline

Joined: December 29th, 2006, 6:57 am
Posts: 123
Location: Australia
I finished up using my version as it handles other controls as well, but if you are interested in beta testing the application at http://inkmon.org/Control There is a readme. You may be pleasently suprised as to its use. I will not go into it here. Clue, does away with Favourites and Roboform.

Beta testers get a full version once complete. I make applications that I use myself and if I find them real useful offer them to others.
Contact:
[url]terry_prism@yahoo.com[/url]

Rapidq is the main programming language I use and AHK is the interactive part. They go together like hand and glove

Terry

_________________
(The guy from Oz)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, Exabot [Bot], Yahoo [Bot] and 14 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