There are no commands that I am aware of to search the clipboard, but you could copy the contents of the clipboard to a string using the cliptostr command (only up to 256 characters will be copied since that is the size of a string in ASPECT), then use strfind to search that string for the text you are looking for.
Thank you for your reply, Knob. cliptostr/strfind will work great if the target is within the 256 character limit. Any suggestions if the target is beyond 256?
The only workaround in that case would be to use cliptofile to save the clipboard to a file, then open that file in your script and search through it line by line using strfind. The only potential problem you could run into there would be if the file was larger than 256 bytes, that the string you are searching for could be split across two different strings read from the file. If the text on the clipboard has lines of less than 256 characters (i.e. formatted to say 80 columns like most documents), then this should not be an issue.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.