GuiXT
Title "Text Comparison"
// Clear the screen
del (0,0) (100,100)

// Box for the text comparison tool
Box (1,1) (14,70) "Text Comparison"

// Two text boxes for input
TextBox (2,2) (6,68) name="Text1" textFont="Arial" textHeight=18 maxLines=4
TextBox (7,2) (11,68) name="Text2" textFont="Arial" textHeight=18 maxLines=4

// Button to compare the texts
PushButton (12,2) "@46@Compare" process="compare_texts.txt"

compare_texts.txt

// Compare the contents of the text boxes
CompareText text1="Text1" text2="Text2"

if Q[ok]
  Message "The texts match!" -statusline
else
  Message "The texts do not match." -statusline
endif

Return