GetTextFromClipboard
String$ = GetTextFromClipboard()
 
Parameters: NONE
Returns:

    String$ = The Current Text Data on the clipboard
 

     The GetTextFromClipboard functions retrieves whatever text data is currently on the Windows clip board.


FACTS:


      * The clipboard can hold all sorts of data, not just text. If you try and retrieve text from the clipboard, when it contians an Image, then the frunction will return a NULL string.




Mini Tutorial:


     This example posts the message "Hello World" to the Windows clipboard, it then reads it back in the next line and displays them.


  
  
; Inlcude the Clipboard library in this program
  #Include "ClipBoard"
  
  // Post the string to windows clipboard
  TextToClipboard("Hello World")
  
  // Get Whatever TExt Is on ClipBoard
  Print GetTextFromClipboard()
  
  // Display the screen & wait for a key press to end
  Sync
  WaitKey
  




This example would output.

  
  Hello World
  

 
Related Info: TextToClipboard :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com