QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: krovit on February 14, 2020, 04:20:02 pm

Title: CTRL+v
Post by: krovit on February 14, 2020, 04:20:02 pm
Hi,

I refer to the contents of the windows clipboard: how to insert them into a variable?

For example, I might want to copy and paste a word from a TXT file in to a field o database.
Or, more simply, try copying the word "name" and paste it into the variable j$:

Code: QB64: [Select]
  1. Input "Past here (in j$) something - a string - that's in the clipboard  "; j$

Title: Re: CTRL+v
Post by: FellippeHeitor on February 14, 2020, 04:50:23 pm
Code: QB64: [Select]

http://www.qb64.org/wiki/CLIPBOARD$ (http://www.qb64.org/wiki/CLIPBOARD$)
Title: Re: CTRL+v
Post by: krovit on February 14, 2020, 04:56:03 pm
This one i really missed!
But since when is there this command?

Title: Re: CTRL+v
Post by: Real2Two on February 14, 2020, 05:23:38 pm
Like long time ago. Doesnt say on wiki rip
Title: Re: CTRL+v
Post by: FellippeHeitor on February 14, 2020, 05:55:35 pm
Since 1.0 for sure, maybe even before.
Title: Re: CTRL+v
Post by: FellippeHeitor on February 14, 2020, 05:56:32 pm
There's _CLIPBOARDIMAGE too, btw.