Liquid UI - WS Reference Library

Copy File Contents to Clipboard


Runs On

  SAP GUI Android iOS WM Web
Direct Connect          
Liquid UI Server Connect        


To copy the contents of a text file to the clipboard by executing a function on UIEvent/s.

User Interface

Log into SAP and on the SAP Easy Access Screen click on the ‘Copy to Clipboard’ toolbar pushbutton.

Liquid UI Script


// User Interface - SAP Easy Access Screen
pushbutton([TOOLBAR],'Copy to Clipboard','?',{'process':copyClipBoard,'size':[1,20]}) // Copies the contents of the file to the clipboard // Need to have webscript.dll v175 or later function copyClipBoard() // Examples: // system.ShellExecute('iexplore.exe','');  // Opens Web Browser with specified link // system.ShellExecute('notepad.exe');                              // Opens Notepad // system.ShellExecute('notepad.exe','C:\\guixt\\scripts\\filename.txt');  // Opens Specified File in Notepad  system.ShellExecute('cmd.exe','/C type c:\\guixt\\scripts\\test.txt|clip');