Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6181 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

The following script is used in my messaging solution to reply to messages.

Freeze Window

Set Error Capture [ On ]

Set Variable [ $ReplyTo; Value:Messages::From ]

Set Variable [ $ReplyFrom; Value:Messages::EmployeeID ]

Set Variable [ $OriginalMessage; Value:Messages::Message ]

Go to Layout [ “Reply” (Messages) ]

New Record/Request

Set Field [ Messages::From; $ReplyFrom ]

Set Field [ Messages::EmployeeID; $ReplyTo ]

Set Selection [ Messages::Message; Start Position: 1 ]

Insert Calculated Result [ Messages::Message; TextColor ( ¶ & ">" & $OriginalMessage; RGB ( 250; 0; 0) ) ]

Set Selection [ Messages::Message; Start Position: Get(ActiveSelectionStart)+2 ]

Pause/Resume Script [ Indefinitely ]

Show/Hide Status Area [ Hide ]

Go to Layout [ original layout ]

It does exactly what i want it to do except for one thing. After i reset the start position i want the new text that is typed in to be black not red. I have tried to add a textformat function after the last set selection step but it does nothing.

Any ideas?

This topic is 6181 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.