Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

World Of Warcraft Auto Login - Improved


  • Please log in to reply
1 reply to this topic
ratchetclan4
  • Members
  • 18 posts
  • Last active: May 02 2010 10:00 PM
  • Joined: 14 Apr 2010
I've Recoded it so its alot simpler to work, and now also has an icon at the bottom with working settings :D for this one you dont need the exe file the ahk file works fine

Without comments
#SingleInstance force


IniRead,filedirectory,wowdata.ini, section2, filedirectory

If (filedirectory = "") or (filedirectory = "ERROR")
{
goto, missing
}

else

goto,settings


TRAYMENU:
Menu,Tray,NoStandard 
Menu,Tray,DeleteAll 
Menu,Tray,Add,Start,START
Menu,Tray,Add,Settings,SETTINGS
Menu,Tray,add,Details,info
Menu,Tray,add,Help,help
Menu,Tray,Add,Exit,EXIT
Menu,Tray,Tip,World of warcraft - login

 
 
RemoveTrayTip:
SetTimer, RemoveTrayTip, Off
TrayTip
return


SETTINGS:
msgbox,Welcome! Please Enter Your Details
gui,destroy
Gui, Add, Text,, Username:
Gui, Add, Edit, vusername
Gui, Add, Text,, password:
Gui, Add, Edit, vpassword
Gui, Add, Button, default, OK
Gui, Show
goto, traymenu




ButtonOK:
Gui, Submit
TrayTip, login details, username: %username% `npassword: %password% `nDirectory: "%filedirectory%" ,
SetTimer, RemoveTrayTip, 6000
goto, launch

return

 







START:

back:
IniRead,filedirectory,wowdata.ini, section2, filedirectory
If (filedirectory = "") or (filedirectory = "ERROR")
{
Msgbox, Please Navigate To Your {C:/Program files/World Of Warcraft} Folder
FileSelectFolder, OutputVar, ::{20d04fe0-3aea-1069-a2d8-08002b30309d}  ; My Computer.
if OutputVar =
Goto, back
Else
MsgBox,You selected folder "%OutputVar%".
IniWrite, %OutputVar% ,wowdata.ini, section2, filedirectory
}

IniRead,filedirectory,wowdata.ini, section2, filedirectory

goto,SETTINGS

launch:
Msgbox, 4,, Would You Like To Launch World Of Warcraft?
   ifmsgbox yes
     Goto,ready
       else ifmsgbox no
         return
       

       
       
 ready:



goto, begin


begin:
run, %filedirectory%\wow.exe
sleep 8000
winactivate,ahk_class GxWindowClassD3d World Of Warcraft
WinMaximize,ahk_class GxWindowClassD3d World Of Warcraft

SetTimer, WinMoveMsgBox, 1
MsgBox, 4132, Login?, Would You Like To Login
ifmsgbox no
return
else
sleep 1000
goto, logon

WinMoveMsgBox:
SetTimer, WinMoveMsgBox, OFF
ID:=WinExist("Decrease Latency")
WinMove, ahk_id %ID%, , 50, 50 
Return

logon:

sendinput %username%
sendinput {tab}
sendinput %password%
sendinput {enter}


return







 
EXIT:
ExitApp



INFO:
TrayTip, login details, username: %username% `npassword: %password% `nDirectory: %filedirectory% ,
SetTimer, RemoveTrayTip, 6000

return



missing:
msgbox, Welcome to WoW launcher Setup This is your first time `nThis will guide you through setting up 

Wow launchers directory
goto, start




help:
TrayTip, help, Welcome `nIf you need to change your directory simply delete the wowdata.ini file located in 

the folder where this script is `n `nTo start world of warcraft press the start button `n `nto view your 

settings click details `n `nto edit your settings click settings ,
SetTimer, RemoveTrayTip, 9999000




With comments


#SingleInstance force

                                     
IniRead,filedirectory,wowdata.ini, section2, filedirectory
; here is where we read the ini file and find out if its missing
If (filedirectory = "") or (filedirectory = "ERROR")                               
{
goto, missing                                                 
}

else

goto,settings     

; here is where we build the GUI & Tray icon
TRAYMENU:                                              
Menu,Tray,NoStandard 
Menu,Tray,DeleteAll 
Menu,Tray,Add,Start,START
Menu,Tray,Add,Settings,SETTINGS
Menu,Tray,add,Details,info
Menu,Tray,add,Help,help
Menu,Tray,Add,Exit,EXIT
Menu,Tray,Tip,World of warcraft - login

 
 
RemoveTrayTip:
SetTimer, RemoveTrayTip, Off
TrayTip
return

; here is the gui box
SETTINGS:
msgbox,Welcome! Please Enter Your Details                    
gui,destroy
Gui, Add, Text,, Username:
Gui, Add, Edit, vusername
Gui, Add, Text,, password:
Gui, Add, Edit, vpassword
Gui, Add, Button, default, OK
Gui, Show
goto, traymenu




ButtonOK:
Gui, Submit
TrayTip, login details, username: %username% `npassword: %password% `nDirectory: "%filedirectory%" ,               
SetTimer, RemoveTrayTip, 6000
goto, launch

return

 






 ; here is where the script starts and checks if filedirectory exists if not it asks you too find it again          
START:

back:            
IniRead,filedirectory,wowdata.ini, section2, filedirectory
If (filedirectory = "") or (filedirectory = "ERROR")
{
Msgbox, Please Navigate To Your {C:/Program files/World Of Warcraft} Folder
FileSelectFolder, OutputVar, ::{20d04fe0-3aea-1069-a2d8-08002b30309d}  ; My Computer.
if OutputVar =
Goto, back
Else
MsgBox,You selected folder "%OutputVar%".
IniWrite, %OutputVar% ,wowdata.ini, section2, filedirectory
}

IniRead,filedirectory,wowdata.ini, section2, filedirectory

goto,SETTINGS

; after you select your directory it prompts you to run wow
launch:                                                                                            
Msgbox, 4,, Would You Like To Launch World Of Warcraft?
   ifmsgbox yes
     Goto,ready
       else ifmsgbox no
         return
       

       
       
 ready:



goto, begin
                                                                            
; when you click the start button on the tray icon it begins to launch WoW
begin:
run, %filedirectory%\wow.exe
sleep 8000
; here we make sure it activates World of warcraft (GAME) and not a webpage titled world of warcraft
winactivate,ahk_class GxWindowClassD3d World Of Warcraft               
WinMaximize,ahk_class GxWindowClassD3d World Of Warcraft

; here is where the message box pops up to ask you if you would like to login, this is added because some peoples games load at different speeds
SetTimer, WinMoveMsgBox, 1                                                         
MsgBox, 4132, Login?, Would You Like To Login
ifmsgbox no
return
else
sleep 1000
goto, logon

WinMoveMsgBox:                                
SetTimer, WinMoveMsgBox, OFF
ID:=WinExist("Decrease Latency")
WinMove, ahk_id %ID%, , 50, 50 
Return

logon:

sendinput %username%
sendinput {tab}
sendinput %password%
sendinput {enter}


return







 
EXIT:
ExitApp



INFO:
TrayTip, login details, username: %username% `npassword: %password% `nDirectory: %filedirectory% ,
SetTimer, RemoveTrayTip, 6000

return


; here is a message triggered if you have no INI file
missing:                                                                                                                                      
msgbox, Welcome to WoW launcher Setup This is your first time `nThis will guide you through setting up Wow launchers directory         
goto, start




help:
TrayTip, help, Welcome `nIf you need to change your directory simply delete the wowdata.ini file located in the folder where this script is `n `nTo start world of warcraft press the start button `n `nto view your settings click details `n `nto edit your settings click settings ,
SetTimer, RemoveTrayTip, 9999000





SpankZor
  • Members
  • 46 posts
  • Last active: Oct 06 2015 08:35 PM
  • Joined: 08 Feb 2013

I know this is old news, the First Script doesn't work for me i always get an error for this

Error at line 152.

Line Text: Wow launchers directory

Error: This line does not contain a recognized action.

 

The program will exit