Copying visible text to clipboard.

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 24 Jun 2018, 19:24

Copying visible text to clipboard.

24 Jun 2018, 19:56

Hello all! I've been using ahk for years now and I've implemented it at work to set serial numbers on our PCB's. When a new board is plugged in, the hostname shows up in our manager software as "vlx-series-dec-0000" but not always in the same spot in the manager. Below that is the IP address of the unit, ( and it is always different.
I'm trying to figure out a way to copy the IP address to the clipboard or as a variable and then paste that into PuTTY for the serialization process, rather than manually typing the IP in. The hostname and IP address are all visible text, according to window spy. The text I'd like to copy is about 12 pixels down and 12 pixels to the right of the hostname. Does anyone have any ideas on how to do this? I'd appreciate it very much. Here is a screenshot of the software I'm using:

On a side note, I'm also trying to figure out how to use ControlClick to right click one of the hostnames. I tried using it to right click "bedroom-dec-0426" with the following code to no avail.

Code: Select all

WinActivate, ahk_class
WinWaitActive, ahk_class
ControlClick,,, bedroom-dec-0426, right

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Qriist, tidbit, tqphan and 76 guests