Clan NoHW
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Clan NoHW

Clan NoHW Forum
 
HomePortalLatest imagesSearchRegisterLog in

 

 Battle.net Login Script

Go down 
2 posters
AuthorMessage
Sir_PostsALoT
Admin
Admin
Sir_PostsALoT


Number of posts : 321
Age : 34
Location : Pleinfeld aka Hero Wars City, Germany
Battle.net Name : UnExiledBrandy
Registration date : 2008-05-19

Battle.net Login Script Empty
PostSubject: Battle.net Login Script   Battle.net Login Script EmptySun Nov 16, 2008 7:57 pm

...hey, I just finished my Battle.net Login Script:

Code:
'UnExiledBrandy.vbs
'version 1.0
'16.11.2008
'=================

Set shell = WScript.CreateObject("WScript.Shell")
Set objShell = CreateObject("WScript.Shell")

'Path to warcraft III.exe
shell.run """C:\Spiele\Warcraft III\Warcraft III.exe", 1
WScript.Sleep 15000
'Enter Battle.net:
objShell.SendKeys "%b"
WScript.Sleep 7000
'Password:
objShell.SendKeys "***"
WScript.Sleep 100
'Login:
objShell.SendKeys "%l"
WScript.Sleep 5000
'Enter Chat/Channel:
objShell.SendKeys "%e"

...this code may only work for the german version of warcraft III because of the commands ALT + B to join the bnet, ALT + L to login and ALT + E to join the chat. But i am willing to customize the script for your language =)

To use this code, copy it, create a new txt file on your desktop, paste the code, customize the file path to your wc3 exe and insert your password. Then rename the file to *.vbs. If you may experience issues or error messges, let me know and i will help you.

Edit: You may experience errors as soon as Blizzard releases a new update for Battle.net, because the delay and maybe the commands arent valid anymore!

Edit2: I will try to add some lines wich check if Warcraft is already running, so the script wont try to open it again.


Last edited by Sir_PostsALoT on Mon Nov 17, 2008 9:53 pm; edited 1 time in total
Back to top Go down
https://clan-nohw.forumotion.com
heroofdeath
Clan Member
Clan Member
heroofdeath


Number of posts : 29
Battle.net Name : heroofdeath / crazyvikin
Registration date : 2008-09-27

Battle.net Login Script Empty
PostSubject: Re: Battle.net Login Script   Battle.net Login Script EmptyMon Nov 17, 2008 2:22 pm

I created the txt file and edited the neccesarities, but when i double click, it just opens in wordpad again
Back to top Go down
Sir_PostsALoT
Admin
Admin
Sir_PostsALoT


Number of posts : 321
Age : 34
Location : Pleinfeld aka Hero Wars City, Germany
Battle.net Name : UnExiledBrandy
Registration date : 2008-05-19

Battle.net Login Script Empty
PostSubject: Re: Battle.net Login Script   Battle.net Login Script EmptyMon Nov 17, 2008 6:27 pm

Sir_PostsALoT wrote:
To use this code, copy it, create a new txt file on your desktop, paste the code, customize the file path to your wc3 exe and insert your password. Then rename the file to *.vbs If you may experience issues or error messges, let me know and i will help you.


...I'm actually still trying to edit the script that it may NOT work when WC3 is already running, but this doesnt look easy with vbs =/
Edit: There is no way to edit the script at this time for that purposes due to vbs limitations and deficiency of my skill

=========================
Beta version!
The following script will close the wc3 process wc3.exe and then runs the same commands like in the first script. This script may shut down your Warcraft III even when you are in a game, so you should use this script only when you really want to =)

Code:
'Kill and Bnet Login.vbs
'version 0.5 BETA
'17.11.2008
'=================


Set objShell = CreateObject("WScript.Shell")
strProcess = "war3.exe"
Set oShell= CreateObject("WScript.Shell")
oShell.Run "TaskKill /im " & strProcess & " /f", WindowStyle, WaitOnReturn
WScript.Sleep 2000
Set oShell = Nothing

Set objShell = CreateObject("WScript.Shell")
Set shell = WScript.CreateObject("WScript.Shell")
shell.run """C:\Spiele\Warcraft III\Warcraft III.exe", 1
WScript.Sleep 7000
objShell.SendKeys "%b"
WScript.Sleep 7000
objShell.SendKeys "924195"
WScript.Sleep 100
objShell.SendKeys "%l"
WScript.Sleep 5000
objShell.SendKeys "%e"
Back to top Go down
https://clan-nohw.forumotion.com
Sponsored content





Battle.net Login Script Empty
PostSubject: Re: Battle.net Login Script   Battle.net Login Script Empty

Back to top Go down
 
Battle.net Login Script
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Clan NoHW :: General Talk :: Technical Section-
Jump to: