How to use AHK direct mouse click at text content?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
lwx228
Posts: 49
Joined: 24 Apr 2022, 08:52

How to use AHK direct mouse click at text content?

Post by lwx228 » 25 May 2022, 02:38

Now I have a software spreadsheet (image tag 1): it is in text format, but it cannot be copied.
I used the AHKSpy tool to get the text of the mouse click range for this table.
How can I get the text content of this AHKSpy through AHK?

For example, I now mouse on row 18 and its "date" column says 2020-05-13.
AHKSpy also recognizes this (but I don't know why it shows 17 lines). How do I write this 2020-05-13 variable "test" in AHK?
Attachments
2022-05-25_15-24-38.png
2022-05-25_15-24-38.png (67.16 KiB) Viewed 176 times

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: How to use AHK direct mouse click at text content?

Post by BoBo » 25 May 2022, 03:17

https://raw.githubusercontent.com/Drugoy/Autohotkey-scripts-.ahk/master/DevTools/AhkSpy.ahk

The title of AHKSpy "mentions" that clicking the R(ight)Button would copy its content to the clipboard. If that's the case you could parse that content from there.
You could change AHKSpy's code to output/append its content to a file?
OTOH, you could check what code section of AHKSpy is getting that specific value and "borrow" that method to create your own detector, assigned to a hotkey.

HTH

Post Reply

Return to “Ask for Help (v1)”