ScriptSpot

Forum topic · General Scripting

how to active text field ?

By titane357 · 2009-07-18

Description

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 (2)

titane357 · 2009-07-23

Thanks ! :-)

Marco Brunetta · 2009-07-18

setFocus rename_rollout.base_name

Look for setFocus in the help file for more info