Jump to content

World of Warcraft Auto-Login help?


Recommended Posts

Ok, so I'm a total newbie when it comes to this, but I did some searching and found a WoW Auto-Login Script.

; AutoIt Version: 3.0
; Language:    English
; Platform:    WinXP
; Author:        Oldhead
;
; Script Function:
;   WoW FishBot.
;
; Wow Window Title - World of Warcraft
; WoW Window Size - w1032 x h795
; classname=GxWindowClassD3d



; Initial shit
WinActivate("World of Warcraft")
HotKeySet("{PAUSE}", "EndScript")

; Script Start

If FileExists(@ProgramFilesDir & "\World of Warcraft\WoW.exe") Then
Run(@ProgramFilesDir & "\World of Warcraft\WoW.exe")


Sleep(25000)
MouseClick("left", 460, 400, 1, 2)
send("username")

Sleep(100)
MouseClick("left", 455, 477, 1, 2)
send("password")

send("{ENTER}")


EndIf



; Function to exit script
Func EndScript()
  $exit = MsgBox(4, "WoW Log In", "End login script?")
  If $exit = 6 Then
    Exit
  EndIf
EndFunc

Now my reason for using this Auto-Login, is my server I play on, is alot of the times full, so if it is full, you will connect, stay connected for a few seconds, then it will say disconnected. Now what I want to do, is have the script press enter, closing the "Disconnected" window, and have the script repeat untill I have logged in.

Any help would be appreciated.

Link to comment
Share on other sites

From the help File of AutoIt

ControlSend works in a similar way to Send but it can send key strokes directly to a window/control, rather than just to the active window.

ControlSend is only unreliable for command prompts as that works differently to normal windows (seems to check physical states rather than accepting the keystroke messages). For normal windows ControlSend should be way more reliable than a normal Send - and yes it does send shift, ctrl, alt etc.

As mention in the Send help the keyboard that send different chars when in CAPS LOCK and using the Shift Key cannot be simulated. An example is the Czech Keyboard. A good workaround is to use the ControlSetText.

Sapiente vince, rex, noli vincere ferro!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...