Process Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Process Operations >

Process Commands

CTR. - Close Thread

Previous Top Next


MiniRobotLanguage (MRL)

 

CTR. Command

Close Thread

 

 

Intention

 

Close Thread. Parameter Thread-ID (#tid#) is optional.

Otherwise #tid# is taken.

 

Will end a running Thread immediately and forcefully

 

 

Syntax

 

 

CTR.[P1]

 

 

Parameter Explanation

 

P1 - ThreadID (#tid#)

 

 

 

Example

 

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

' CTR.-Demo

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

' Internet Explorer must be started

: §§LNK=http://www.fa2.de/

EXS.iexplore

STW.c|ieframe

' #tid# is set automatically by the STW.

' Be shure to use VAR. and not : because of Specialfolder/Systemvariable-Substitution

VAR.§§TID=#tid#

DBP.Thread-ID is: §§TID

SWP.0,0

DBP.We'll kill the IE-Thread in 3 Seconds.

PAU.3

CTR.§§TID

MBX.Ready

END.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

 

See also:

 

 

  1.7. Application and PID

  IEP. / NEP. - If-Exists-Process

  FEP. - For-Each-Process

  CLW. - Close-Window

  CAW. - Close-All-Windows

  CTR. - Close-ThRead

  CPR. - Close-PRocess

  KPN. - Kill Process by Name

  GDF. - Get-Data-From

  GPU. - Get Process User