Mark OK button so when i press Enter it will press OK.

Hello all,

i have a script with text box which an IP address should be inserted into and after that hit OK.
my problem is that after inserting the IP, i can press OK only with the mouse, i need the OK button to be pre-marked or somthing like that.

Thanks in advance.

If you’d use the pure console without any GUI elements you wouldn’t need the mouse at all. :wink:

I’ve found that helpful:

$button_start.TabIndex = 0

this marks the start button but, when i click inside the test box, the button is no longer marked.
how to keep it permanently ,arked so Enter will always click it?