Selecting and writing in a textbox in c
===

Hi I am trying to make a program that will record the user :
1,Clicking the text box;
2,Typing typing the wrong password and clicking "enter";
3,clicking "cancel" in the text box

After that, it should test different passwords with a while loop and stop when it gets a different output(password accepted).

The problem is, I have no idea how to make c recognize a text box, nor how to fill the box with text. could someone help me out with this?
(i know its bad to ask a question without any code, but i have no idea what to do)