Mikeyww wrote the following script to break each line of text stored in my clipboard, and then display it as a menu item to paste where needed:
Code: Select all
For each, line in StrSplit(Clipboard, "`n", "`r")
Menu, scripts, Add, %line%, Execute
Menu, scripts, Show
Return
Execute:
SendInput {Text}%A_ThisMenuItem%
Return
Moreover, I've realized that what I really need is to be able to access certain client data anytime. So I need to store it in a text file (one in each client's specific subfolder).
So I want a script which is in the format:
Code: Select all
FileRead, Contents, %FilePath%
So 2 issues:
(1) How do I copy the contents of the file without throwing a menu item name too long error; and
(2) Can I do a
Code: Select all
FileRead, contents
Thanks in advance for any help! Of course, if an array or a list works better than a menu, that's okay. I just want it to be robust.