Sign in to follow this  
Followers 0
Errorlevel_03

Warcraft 3 Login

3 posts in this topic

Use this to login to Warcraft 3: Frozen Throne B.Net

P.S. This is my first script :)

Warcraft_3_Login.au3


I hope you know what a spoiler is...[u]"title WOOPS:Var_start "WOOPS" %0goto Var_"-A true n00b at work[/u]

Share this post


Link to post
Share on other sites



Use this to login to Warcraft 3: Frozen Throne B.Net

P.S. This is my first script  :)

<{POST_SNAPBACK}>

I've never used Warcraft, but I play Ragnarok. I have rewritten the beginning of your script as follows:

;script adapted from Errorlevel_03 for Warcraft 3 login

$name = InputBox("Name","Please enter your name below.",@UserName," M",-1,120)

If @error = 1 Then

Exit

EndIf

$pass = InputBox("Password","Please enter your password below.","","*M",-1,120)

If @error = 1 Then

Exit

EndIf

Run(@ProgramFilesDir & "\Warcraft III\Frozen Throne.exe")

The first input box will now default to the user who is currently logged on the machine, and makes an entry mandatory before the user can click OK. The second input box masks the typed password with asterisks while still requiring an entry before clicking OK. I adjusted the height of the boxes as well as allowing the user to Cancel (hence the reference to @error) which will exit the process.

The executable will now run from the program files folder of the machine (can be different).

Although I am not familiar with the login process for Warcraft, try to use as many WinWait or WinWaitActive's as possible instead of Sleep(). And use the Window Info tool to directly interface with a windows controls. Try NEVER to use the MouseClick function since the location referenced depends on the window position and resolution of the machine. But if this was your first script, it's still not bad at all. Just thought this info would be useful to you.

Feel free to post your final login script!

Share this post


Link to post
Share on other sites

Thanks for the improvment


I hope you know what a spoiler is...[u]"title WOOPS:Var_start "WOOPS" %0goto Var_"-A true n00b at work[/u]

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