rwg
New Member
Posts: 49
|
Post by rwg on Aug 22, 2019 21:01:36 GMT -5
hi - is there anyway that i can paste copied text into an INPUT request in the mainwindow ? many thanks for any help
|
|
|
Post by metro on Aug 22, 2019 22:55:50 GMT -5
hi - is there anyway that i can paste copied text into an INPUT request in the mainwindow ? many thanks for any help
Doesn't seem to work, so why not resort to an API
input "Please Copy What you need and press enter"; a$
calldll #user32, "OpenClipboard",h as long, result as long calldll #user32, "GetClipboardData",_CF_TEXT as long,_ txt as long
if txt<>0 then print print "Text content of clipboard:" print a$= winstring(txt) print a$ else print print print "Ooops you forgot to copy something" end if
'Remove the current contents of the clipboard CallDll #user32, "EmptyClipboard", r as long
calldll #user32, "CloseClipboard", result as void
end
|
|
rwg
New Member
Posts: 49
|
Post by rwg on Aug 24, 2019 15:19:41 GMT -5
many thanks metro
|
|
|
Post by kallie on Jul 4, 2023 14:40:09 GMT -5
Just to say, also Thanks.
This became one of the smaller problems I had developing my small programs.
The rest I battled through and have a few more to solve but this was a real pain and I knew, I did not know how to fix. Do now!
x
|
|
|
Post by tsh73 on Jul 4, 2023 15:45:59 GMT -5
|
|