Window Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations >

Window Operations

CFW. - Copy from Window

Previous Top Next


MiniRobotLanguage (MRL)

 

CFW. Command

Copy from Window

 

 

Intention

 

Reads the Text from the actual localized Window. If this is a Top-Window you get the Window-Title. If this is a child-window you may get something useful or not. It is faster then GAI. If CFW. fails, try GAI.

 

CFW. has four Modes of operation:

 

' No parameter

CFW.

 

Will copy the text from the actual window to the TOS.

 

CFW.$$TXT

 

Will just read the text from the actual window. In this Mode, CRLF, as well as leading and trailing spaces are filtered. Also all leading and trailing ASCII Characters below 33 are fitlered. This will not happen if you add the "u"-flag. Like this:

 

CFW.$$TXT|u

 

Will read the text "unfiltered".

 

CFW.|u

 

Will read the text "unfiltered" and put it on the TOS.

 

 

Syntax

 

 

CFW.[P1]

 

 

Parameter Explanation

 

CFW. works an most common controls.It does not work in any browser, use GAI. then.

 

 

P1 - Variable for Text which is read from the window. If omitted TOS is used.

 

 

 

Example

 

'*************************************

' CFW.-Sample

' Please run TestApp from SAmples Folder

'*************************************

 

STS.CLEAR

STW.ct|PBWindowClass:0|TestApp

CFW.

STS.DUMP.

MBX. Got window title on TOS

 

STW.ct|PBWindowClass:0|TestApp

SCW.nct|1|Button|Button 2

CFW.$$TXT

PRT.Got Window-Text into Variable: $$TXT

' Clear Variable

VAR.$$TXT=

 

STW.ct|PBWindowClass:0|TestApp

SCW.nc|1|SysIPAddress32

CFW.$$TXT|u

PRT.Got Text from IP-Control: $$TXT

 

STS.CLEAR

STW.ct|PBWindowClass:0|TestApp

SCW.nct|1|Edit

CFW.|u

STS.DUMP

MBX.Got Text from Edit-Control (unfiltered) on TOS.

 

STS.CLEAR

STW.ct|PBWindowClass:0|TestApp

SCW.nct|1|Edit

CFW.$$TXT

PRT.Got Text from Edit-Control, filtered:$crlf$+$$TXT

MBX.Got Text from Edit-Control filtered on Into VAR.

 

ENR.

'-----------------------------------------------------------

 

 

 

 

Remarks

 

Uses the Windows-Engine.

 

 

Limitations:

 

-

 

 

See also:

 

    GAI. - Get-Acc-Information