Errors in docs. Topic is solved

Share your ideas as to how the documentation can be improved.
LAPIII
Posts: 669
Joined: 01 Aug 2021, 06:01

Errors in docs.

Post by LAPIII » 02 Sep 2023, 13:07

On this page, Example #4 has 2 errors.


[Mod edit: Moved topic from 'About this Community'.]

gregster
Posts: 9096
Joined: 30 Sep 2013, 06:48

Re: Errors in docs.  Topic is solved

Post by gregster » 02 Sep 2023, 13:15

This one?
https://www.autohotkey.com/docs/v2/lib/A_Clipboard.htm#ExAppend wrote:#4: Appends some text to the clipboard.

Code: Select all

A_Clipboard .= " Text to append."
In what sense? Which error messages do you get? Seems to work fine here.
Please elaborate!

Memo:
.= is an assignment operator used for appending: see https://www.autohotkey.com/docs/v2/Variables.htm#AssignOp
Similarly, Var .= "abc" is a shorthand way of writing Var := Var . "abc".
A_Clipboard was introduced in AHK v2 (also backported to v1.1.35+), but it replaces the Clipboard variable in v2.

LAPIII
Posts: 669
Joined: 01 Aug 2021, 06:01

Re: Errors in docs.

Post by LAPIII » 04 Sep 2023, 08:54

Thanks for clearing that up. :)

Post Reply

Return to “Suggestions on Documentation Improvements”