Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmScreen Object / Copy Method
Example
In This Topic
    Copy Method (IbmScreen)
    In This Topic
    Copies selected text to the Clipboard.
    Syntax
    expression.Copy() 
    where expression is a variable that represents a IbmScreen Object
    Example
    This sample selects an area on the screen and copies it to the clipboard. You can test this sample by pasting the contents into a text editor.
    Sub CopyScreenTextToClipboard()
     
        'Select the area to copy
        ThisIbmScreen.SetSelectionStartPos 8, 9
        
        ThisIbmScreen.ExtendSelectionRect 13, 71
        
        ThisIbmScreen.Copy
           
    End Sub
    See Also