Sign in to follow this  
Followers 0
trante

Winexists than search for textbox

2 posts in this topic

I have an EXE call it myprogram.exe

It has a login dialog. When i open exe that dialog opens.

I need to enter my default passwords regarding to script type.

* Script will check for the dialog frequently. I make it with this.

Code:

AdlibRegister("Myfunction",250);

While 1

Sleep(20)

Wend

* My function is like this:

Code:

Func Myfunction()

If WinExists("My window name") Then

WinActivate("My window name")

Send username and password here

Send("(ENTER DOWN)")

Send("(ENTER UP)")

EndIf

EndFunc

My need is, function will check for the "textbox" of username and password.

If window exists these two textboxes, data will be entered to textbox.

When i close and reopen the EXE, script will check for that window again and enter password if textarea exists again.

Which commands should i use to check whether a window has a textbox, thank you

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

And I thought disussing Auto-Login bots isn't allowed here. Damn... ;) Did you really have a look at the forum rules? Take your time: http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/.

ANOTHER SUGGESTION: Write in big letters bro. My vision is correct but have pitty on those with bad vision...

Good luck.

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0