Back

Command MakeClip
Parameters Text to make clip of

Example....

[[Script]]
MakeClip "Fred said Hello"

Notes The MakeClip command creates a new clip in the yellow area.

This example splits the last copied multi line text into separate clips, one line per clip...

[[Script]]
SoundOff
ClearClips
LatestLast
Text1 = LastCopy
'-----------Remove trailing blank lines
Loop
   If Right$(Text1 , 2) = LineBreak
      Text1 = Left$(Text1 , Len$(Text1) - 2)
   Else
      ExitLoop
   EndIf
EndLoop
'---------------------------
Loop
   '-----remove leading blank lines
   Loop
      If Left$(Text1 , 2) = LineBreak
         Text1 = Right$(Text1 , Len$(Text1) - 2)
      Else
         ExitLoop
      EndIf
   EndLoop
   '--------------------
   Counter1 = In$(Text1 , LineBreak , 1)
   If Counter1 = 0
      ExitLoop
   EndIf
   Text2 = Left$(Text1 , Counter1 - 1)
   Text1 = Right$(Text1 , Len$(Text1) - Counter1 + 1)
   MakeClip Text2
EndLoop
MakeClip Text1 'Last line

 

The clips made by the MakeClip command are also created in the clipboard history sheet. If there were more than 25 lines in the last copied clip, all the individual lines are available in the Clipboard history sheet.

 

Back