Left mouse click to copy and paste script

Post your working scripts, libraries and tools
3rror403
Posts: 1
Joined: 03 May 2017, 14:12

Left mouse click to copy and paste script

03 May 2017, 14:24

Hi all,

I've been working on transferring test cases from one system to another. In each of these systems, there are text fields which need to be copied and autohotkey has helped me out greatly to simplify my task so I wanted to share what I've been using. I'm not claiming this is the best solution but it's saved me tons of time. This script is enabled/disabled using the Tab button. While enabled, a single left mouse click will highlight all text contained in a field and then copy it to the clipboard. A second left mouse click will paste the clipboard into a new empty field. Because of this, this script only functions correctly when pasting the clipboard into an empty field, because if text did exist in the target field, it would end up copying the target field text instead. Hopefully this will help someone else down the road.

Code: [Select all] [Download] GeSHi © Codebox Plus

Tab::Suspend, Toggle

~LButton::
Click 3
KeyWait, LButton
Send ^c
~RButton::
KeyWait, LButton
Send ^v

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 15 guests