how to active text field ?

Hello

following script is an example script in macroscript help...
could somebody tell me how to make text field to be active : no need to mouse clic in ????

macroScript RenameThem category:"HowTo"
(
rollout rename_rollout "Enter New Base Name"
(
edittext base_name ""
button rename_them "RENAME SELECTED OBJECTS..."
on rename_them pressed do
(
if base_name.text != "" do
for i in selection do i.name = uniquename base_name.text
)--end on
)--end rollout
createDialog rename_rollout 250 50
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
titane357's picture

Thanks ! :-)

Thanks ! :-)

Marco Brunetta's picture

setFocus

setFocus rename_rollout.base_name

Look for setFocus in the help file for more info

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.