SetDialogProperty> Multiline Text Property

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

SetDialogProperty> Multiline Text Property

Post by MadQuestion » Wed Nov 15, 2017 8:57 pm

I am just wondering if there is a way to Set the dialog property of a memo box so that every time the scripts reads the command it takes a new line without deleting the text already in the memo box.

Code: Select all

Let>COUNT=0
Repeat>COUNT
Let>COUNT=COUNT+1
SetDialogProperty>Dialog1,MEMO_BOX,Text,Message %COUNT%%CRLF%
Wait>1
Until>COUNT=41
When I open the dialog the above script is run when the dialog activates every time the script reads the command it completely replaces the current text and provides the next message in the sequence, for an example of the result I require;
Message 1
Message 2
Message 3
Message 4
Message 5
Message 6

Any suggestions or tips would be a big help. :D :) :lol: :P :roll:

MadQuestion
Pro Scripter
Posts: 70
Joined: Wed Nov 08, 2017 6:54 pm

Re: SetDialogProperty> Multiline Text Property

Post by MadQuestion » Wed Nov 15, 2017 9:07 pm

OK so I figured it out without any forum help this time.

Code: Select all

Let>OLDMSGS=START
Let>COUNT=0
Repeat>COUNT
Let>COUNT=COUNT+1
GetDialogProperty>Dialog1,MESSAGE_WINDOW,Text,OLDMSGS
SetDialogProperty>Dialog1,MESSAGE_WINDOW,Text,Message %COUNT%%CRLF%%OLDMSGS%
Wait>1
Until>COUNT=41
I just needed to GetDialogProperty> before SetDialogProperty> and then include the Get Property in the Text Property of the memo box object.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts