In some programs is it possible that copied informationen from clipboard goes automaticly into a textedit or textcontrol.

In this code is a example to get the informationen from the clipboard automaticly.

window open 400,100 to 600,300, "Clipboard_test", "Clipboard_test" dim msg$(1)
while(not finished)
n = token(message$, msg$(), ":|")
for i = 1 to n
if (CLIPBOARD PASTE$="") then
draw flush "Clipboard_test"
draw text 10,10, CLIPBOARD PASTE$, "Clipboard_test"
if(instr(msg$(i), "Quit")) finished = true
next i

Tutorial by Lorenz Glaser(Lorglas) Feb 2022
Made available by BeSly the Haiku, BeOS and Zeta knowledge base.