Hi, found the solution:
<HAScript name="test" description="0" timeout="20000" pausetime="20" promptall="true" blockinput="false" author="sabine rein" creationdate="09 2025" supressclearevents="false" usevars="true" ignorepauseforenhancedtn="true" delayifnotenhancedtn="0" ignorepausetimeforenhancedtn="true" continueontimeout="false">
<import>
<type class="javax.swing.JLabel" name="JavaLabel"/>
<type class="java.awt.GridLayout" name="JavaGridLayout"/>
<type class="javax.swing.JOptionPane" name="JavaOptionPane"/>
<type class="javax.swing.JTextField" name="JavaTextField"/>
<type class="javax.swing.JPanel" name="JavaPanel"/>
</import>
<vars>
<create name="$str_deo$" type="string" />
<create name="$str_bulbs$" type="string" />
<create name="$panel$" type="JavaPanel" />
<create name="$deo$" type="JavaTextField" />
<create name="$bulbs$" type="JavaTextField" />
<create name="$returnValue$" type="integer" />
</vars>
<screen name="start" entryscreen="true" exitscreen="false" transient="false">
<description>
<oia status="NOTINHIBITED" optional="false" invertmatch="false" />
</description>
<actions>
<varupdate name="$panel$" value="$new JavaPanel($new JavaGridLayout(2, 2)$)$" />
<perform value="$panel.add($new JavaLabel('Novelty Deodorants:')$)$" />
<varupdate name="$deo$" value="$new JavaTextField()$" />
<perform value="$panel.add($deo$)$" />
<perform value="$panel.add($new JavaLabel('Light Bulbs:')$)$" />
<varupdate name="$bulbs$" value="$new JavaTextField()$" />
<perform value="$panel.add($bulbs$)$" />
<varupdate name="$returnValue$" value="$JavaOptionPane.showConfirmDialog(null, $panel$, 'test', 2, 2)$" />
<if condition="$returnValue$ == 0">
<varupdate name="$str_deo$" value="$deo.getText()$" />
<varupdate name="$str_bulbs$" value="$bulbs.getText()$" />
<message title="'test'" value="'deo: ' + $str_deo$ + ', bulbs: ' + $str_bulbs$" />
</if>
<if condition="$returnValue$ != 0">
<message title="'exit'" value="'exit'" />
</if>
</actions>
<nextscreens timeout="0">
<nextscreen name="end" />
</nextscreens>
</screen>
<screen name="end" entryscreen="false" exitscreen="true" transient="false">
<description>
<oia status="NOTINHIBITED" optional="false" invertmatch="false" />
</description>
<actions>
</actions>
</screen>
</HAScript>
------------------------------
Sabine Rein
------------------------------
Original Message:
Sent: Thu June 20, 2024 04:00 PM
From: Christopher Verdon
Subject: Carriage returns in HAScript prompt windows?
I'm working on a way to quickly enter repetitive text into the terminal window. It'd really help if when I make a prompt pop up if the text in the window, or as it's called the "prompt name" could have multiple lines of text. So far everything I've tried to put in the string or concatenate into the string has failed. For example I've tried using character codes like and formatting codes like \n, but I've had no luck. This is mostly just a side project I do on my breaks but any input would be appreciated. I've included a shot of what I've started. Where it says the 2 kinds of commodities is where I'd like to break it up.
------------------------------
Christopher Verdon
------------------------------