Skip to main content
Known Participant
September 17, 2013
Answered

How can i put cursor in ScriptUI edittext form?

  • September 17, 2013
  • 1 reply
  • 797 views

          ↑ : now                            ↑  : i want

function getInfo(){

var win =new Window ("dialog");
  win.orientation = "column";

var first = win.add ("edittext", undefined, "");
  first.active = true;
 
var second = win.add ("edittext", undefined, "");
  second.active = false;
 
win.show();
}

getInfo();

i know ".active = true" is solution. But it's not working my script.

what is my fault?

How can i put cursor in ScriptUI edittext form?

help me

This topic has been closed for replies.
Correct answer pixxxelschubser

Which Illu-version do you use?

Try this:

function getInfo(){

var win =new Window ("dialog");

  win.orientation = "column";

var first = win.add ("edittext", undefined, "");

  first.active = true;

 

var second = win.add ("edittext", undefined, "");

// second.active = false;

 

win.show();

}

getInfo();

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
September 17, 2013

Which Illu-version do you use?

Try this:

function getInfo(){

var win =new Window ("dialog");

  win.orientation = "column";

var first = win.add ("edittext", undefined, "");

  first.active = true;

 

var second = win.add ("edittext", undefined, "");

// second.active = false;

 

win.show();

}

getInfo();

kimDino8Author
Known Participant
September 17, 2013

omg... thank you pixxxel schubser!

It's working.