Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 7:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to put text into a text field via opus script?
PostPosted: November 23rd, 2004, 2:23 pm 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
Hi,

I do my first steps with opus script and wonder how I can do a simple thing like putting text into a text field.
I miss a command like "setText" or something like that.

Actually I try to put the current date and time into a text field.

I would be grateful if someonen could give me a hint how to to this.

Thanks in advance.


Frank


For this message Tarantoga has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 23rd, 2004, 2:56 pm 
Offline

Joined: October 25th, 2004, 3:09 pm
Posts: 32
For a text object Text 1

Text_1.SetSelection(0, -1);
Text_1.ReplaceSelection("Example Text");

SetSelection in this case will select all the text. If you wanted to add text to the end you could use

Text_1.SetSelection(-1, -1);
Text_1.ReplaceSelection("Example Text");

Tony


For this message Tony Coleman has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 23rd, 2004, 3:21 pm 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
Hi Tony,

thank you very much for your help!


Frank :D


For this message Tarantoga has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group