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

Welcome Forums General PowerShell Q&A Mark OK button so when i press Enter it will press OK.

Viewing 2 reply threads
  • Author
    Posts
    • #181314
      Participant
      Topics: 6
      Replies: 11
      Points: 100
      Rank: Participant

      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.

    • #181332
      Participant
      Topics: 2
      Replies: 1707
      Points: 3,428
      Helping Hand
      Rank: Community Hero

      If you'd use the pure console without any GUI elements you wouldn't need the mouse at all. 😉

    • #181371
      Participant
      Topics: 6
      Replies: 11
      Points: 100
      Rank: Participant

      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?

Viewing 2 reply threads
  • The topic ‘Mark OK button so when i press Enter it will press OK.’ is closed to new replies.