It's not really designed for this, but, if you insert the following immediately before the end of the PROCcheckclip routine...
3081 : IF text_available% THEN PROCsaveTXT("<Wimp$ScrapDir>.winclip"):SYS "ClipboardHolder_Copy",1,&FFF,"<Wimp$ScrapDir>.winclip"
... then every time that it checks the clipboard and finds that it contains text, it will be copied to the RISC OS clipboard.
Obviously this is terribly inefficient, and incorrect. WinClip would, for this, need to check whether the contents had changed - I would assume there's a notification that goes around that could be used. If not then a length check + simple CRC of the contents would suffice, I imagine.
Handling of other formats is left as an exercise for the reader. Sadly, my laptop is currently on vacation so I can neither try this nor say if it's even correct.
Please login before posting a comment. Use the form on the right to do so or create a free account.
Search the archives
Today's featured article
Star Fighter 3000: The Next Generation review Star Fighter 3000: The Next Generation was born from the 3D0 version of the original SF3K that was ported back to RISC OS and this year freed from programmers' hard discs for the platform to enjoy, writes Andrew Weston. In this review Andrew weighs up much-improved graphics and sound against playability and stability. 19 comments, latest by AW on 9/12/08 8:45PM. Published: 17 Nov 2008