Quote from
Talker on August 17, 2022, 5:29 pm
I am displaying the current mouse position (with a timer) in a simple text (Text1) control. The user can also copy the current mouse position with a button:
SetVar "[Clipboard]" "[POST_X] [POST_Y]"
That works. But what I actually want is to copy the total contents of the simple text control including the descriptive text and the two mouse position variables), like so:
Your X mouse coordinate is: [POST_X]
Your Y mouse coordinate is: [POST_Y]
Depending on the actual mouse pointer position the results should then be something like:
Your X mouse coordinate is: 727
Your Y mouse coordinate is: 418
I tried it with SetVar "[Clipboard]" "[Text1]"
but this does not seem to copy anything...
What am I doing wrong?
I am displaying the current mouse position (with a timer) in a simple text (Text1) control. The user can also copy the current mouse position with a button:
SetVar "[Clipboard]" "[POST_X] [POST_Y]"
That works. But what I actually want is to copy the total contents of the simple text control including the descriptive text and the two mouse position variables), like so:
Your X mouse coordinate is: [POST_X]
Your Y mouse coordinate is: [POST_Y]
Depending on the actual mouse pointer position the results should then be something like:
Your X mouse coordinate is: 727
Your Y mouse coordinate is: 418
I tried it with SetVar "[Clipboard]" "[Text1]"
but this does not seem to copy anything...
What am I doing wrong?