---------------------------
ahk_master.ahk
---------------------------
"XXXXXX___This_Line_is_of_interest_XXXXXX"
---------------------------
OK
---------------------------
From the documentation page for MsgBox, there is a tip mentioning: "Tip: Pressing ctrl+c while a MsgBox window is active will copy its text to the clipboard. This applies to all MsgBoxes, not just those produced by AutoHotkey." ==> Yet, as shown above, the copied contents are formatted with window_title and an OK button, along with a few horizontal divider lines. The following subroutine can reproduce the message above. (I would like to keep the "OK" button to make sure the MsgBox won't go away before I get a chance to *copy* from it for its text.)
Code: Select all
test_clipboard:
StrOfInterest="XXXXXX___This_Line_is_of_interest_XXXXXX"
MsgBox, %StrOfInterest%
return