Clipboard Read Write (code snippet)

Description

Reading and writing to the clipboard is supported by using IUP.

See: http://www.tecgraf.puc-rio.br/iup/en/elem/iupclipboard.html for methods and attributes.

Requires: None

Code

    clipboard = iup:clipboard()
    if clipboard.textavailable then
        strText= clipboard.text
    else
        fhMessageBox('Text not found in Clipboard')
        return
    end
 
-- Set Text in Clipboard    
clipboard.text = string.gsub(strText,'find','replace')