LoL SIR..?
This is a Really simple launcher it opens IE types in your login runs the game Closes IE. it also Makes the game Portable
Launcher Not Tested on 32-bit i need some feedback.
[WARNING] This Program modifies the registry:
HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield Heroes Language
HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield Heroes "Installation Dir"
HKLM\SOFTWARE\Wow6432Node\Electronic Arts\EA Games\Battlefield Heroes "Installation Dir"
HKLM\SOFTWARE\Wow6432Node\Electronic Arts\EA Games\Battlefield Heroes Language
Updated the code
Fixed: closes only the internet explorer's it opened
Changed: Neatened the code up some
Copy The code to notepad and save it as Launcher.bat
Then copy/move Launcher.bat to your BFHeroes.exe
now run Launcher.bat
CODE:
@EcHo off \\set the Cmd size mode con:cols=60 lines=25 \\Looks if your in the right place IF EXIST BFHeroes.exe ( Goto system ) ELSE ( goto Error) \\Looks if you have any saved info :system IF EXIST Settings.ini ( Goto Read ) ELSE ( goto Menu) \\Reads the info if you have any :Read setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in (Settings.ini) do ( set /a N+=1 set v!N!=%%a ) Set login=!v1! Set password=!v2! Set TBit=!v3! goto Regedits \\main menu :Menu CLS Echo _____ _ _ _ Echo ^| __ \ ^| ^| ^| ^| ^| ^| Echo ^| ^|__) ^|__ _ __^| ^| __ _^| ^|__ ^| ^| ___ Echo ^| ___/ _ \^| '__^| ^| / _` ^| '_ \^| ^|/ _ \ Echo ^| ^| ^| (_) ^| ^| _^| ^|_^|(_^| ^| ^|_) ^| ^| __/ Echo ^|_^| \___/^|_^|^|_____\__,_^|_.__/^|_^|\___^| Echo. Echo. echo ***************l echo * 1 Portable * echo * 2 Quit * echo *************** Echo _ _ _ _ _ set /P C=^|_1_-_2_-_^> if "%C%"=="1" goto Language if "%C%"=="2" Exit CLS goto Menu \\Language menu :Language CLS Echo _ Echo ^| ^| Echo ^| ^| __ _ _ __ __ _ _ _ __ _ __ _ ___ Echo ^| ^|/ _` ^| '_ \ / _` ^| ^| ^| ^|/ _` ^|/ _` ^|/ _ \ Echo ^| ^| (_^| ^| ^| ^| ^| (_^| ^| ^|_^| ^| (_^| ^| (_^| ^| __/ Echo ^|_^|\__,_^|_^| ^|_^|\__, ^|\__,_^|\__,_^|\__, ^|\___^| Echo __/ ^| __/ ^| Echo ^|___/ ^|___/ echo. echo : 1 : English echo : 2 : German echo : 3 : French echo : 4 : Italian echo : 5 : Polish echo : 6 : Portuguese echo : 7 : Russian echo : 8 : Spanish echo : 9 : Turkish echo : 10 : Dutch echo : 11 : Back echo. Echo _ _ _ _ _ _ _ _ _ set /P C=^|_L_A_N_G_U_A_G_E_^> if "%C%"=="1" goto English if "%C%"=="2" goto German if "%C%"=="3" goto French if "%C%"=="4" goto Italian if "%C%"=="5" goto Polish if "%C%"=="6" goto Portuguese if "%C%"=="7" goto Russian if "%C%"=="8" goto Spanish if "%C%"=="9" goto Turkish if "%C%"=="10" goto Dutch if "%C%"=="11" goto Menu goto Language :English set Language=English goto Found :German set Language=German goto Found :French set Language=French goto Found :Italian set Language=Italian goto Found :Polish set Language=Polish goto Found :Portuguese set Language=Portuguese goto Found :Russian set Language=Russian goto Found :Spanish set Language=Spanish goto Found :Turkish set Language=Turkish goto Found utch set Language=Dutch goto Found \\Login page :Found CLS Echo _ _ Echo ^| ^| (_) Echo ^| ^| ___ __ _ _ _ __ Echo ^| ^| / _ \ / _` ^| ^| '_ \ Echo ^| ^|___^| (_) ^| (_^| ^| ^| ^| ^| ^| Echo ^|______\___/ \__, ^|_^|_^| ^|_^| Echo __/ ^| Echo ^|___/ Echo. Echo. set /P login=Email-^> CLS Echo _ _ Echo ^| ^| (_) Echo ^| ^| ___ __ _ _ _ __ Echo ^| ^| / _ \ / _` ^| ^| '_ \ Echo ^| ^|___^| (_) ^| (_^| ^| ^| ^| ^| ^| Echo ^|______\___/ \__, ^|_^|_^| ^|_^| Echo __/ ^| Echo ^|___/ Echo. Echo. set /P password=Password-^> Echo %login%>>Settings.ini Echo %password%>>Settings.ini Echo %Language%>>Settings.ini Cls goto system \\set's the registry data :Regedits CLS REG ADD "HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield Heroes" /v "Installation Dir" /d "%CD%" /f REG ADD "HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield Heroes" /v Language /d "%TBit%" /f REG ADD "HKLM\SOFTWARE\Wow6432Node\Electronic Arts\EA Games\Battlefield Heroes" /v "Installation Dir" /d "%CD%" /f REG ADD "HKLM\SOFTWARE\Wow6432Node\Electronic Arts\EA Games\Battlefield Heroes" /v Language /d "%TBit%" /f CLS goto login \\Logs you in :login IF "%PROCESSOR_ARCHITECTURE%"=="x86" ( Set bit= ) ELSE ( Set bit=C:\WINDOWS\SysWOW64\wscript.exe ) Echo Dim IET >>Temp.vbs Echo Set IET = CreateObject("InternetExplorer.Application") >>Temp.vbs Echo IET.Toolbar = false >>Temp.vbs Echo IET.statusbar=false >>Temp.vbs Echo IET.Visible = true >>Temp.vbs Echo IET.navigate "https://www.battlefieldheroes.com/en/",2 >>Temp.vbs Echo Do While (IET.Busy) >>Temp.vbs Echo WScript.Sleep 20 >>Temp.vbs Echo Loop >>Temp.vbs Echo Set Helem = IET.document.getElementByID("mail") >>Temp.vbs Echo Helem.Value = "%login%" ' change this to yours >>Temp.vbs Echo Set Helem = IET.document.getElementByID("password") >>Temp.vbs Echo Helem.Value = "%password%" ' change this to yours >>Temp.vbs Echo Set Helem = IET.document.Forms(1) >>Temp.vbs Echo Helem.Submit >>Temp.vbs Echo wscript.sleep 5000 >>Temp.vbs Echo Set IE = CreateObject("InternetExplorer.Application") >>Temp.vbs Echo IE.Toolbar = false >>Temp.vbs Echo IE.statusbar=false >>Temp.vbs Echo IE.Visible = true >>Temp.vbs Echo IE.navigate "https://www.battlefieldheroes.com/en/launchgame",2 >>Temp.vbs Echo Do While (IE.Busy) >>Temp.vbs Echo WScript.Sleep 2500 >>Temp.vbs Echo Loop >>Temp.vbs Echo IET.Quit >>Temp.vbs Echo IE.Quit >>Temp.vbs cd "%CD%" call %bit% "%CD%\Temp.vbs" del /f Temp.vbs Exit \\Error page :Error Echo ______ Echo ^| ____^| Echo ^| ^|__ _ __ _ __ ___ _ __ Echo ^| __^| ^| '__^| '__/ _ \^| '__^| Echo ^| ^|____^| ^| ^| ^| ^| (_) ^| ^| Echo ^|______^|_^| ^|_^| \___/^|_^| Echo. Echo. Echo Please Place with "BFHeroes.exe" Echo Defalt location is Echo 32-bit "C:\Program Files\EA Games\Battlefield Heroes" Echo 64-bit "C:\Program Files (x86)\EA Games\Battlefield Heroes" Echo. Echo. Echo. PAUSE
Kedjohaxor (10-10-2012)
Note; Replace the smile for : and )
Please press thanks or rep if I helped you!
A button says more than words!
My Release. Please Close.