Results 1 to 12 of 12
  1. #1
    BattleEye's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    196
    Reputation
    10
    Thanks
    80
    My Mood
    Paranoid

    Battlefield heroes portable/Launcher

    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



    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
    :Dutch
    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
    Last edited by siahtekrr; 08-18-2012 at 09:55 AM.

  2. #2
    FrosK's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Porto, Portugal
    Posts
    2,653
    Reputation
    411
    Thanks
    1,249
    My Mood
    Amazed
    Wait till someone approves it....

  3. #3
    BattleEye's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    196
    Reputation
    10
    Thanks
    80
    My Mood
    Paranoid
    Quote Originally Posted by KratosPower View Post
    Wait till someone approves it....
    theirs nothing to approve.. you can read the code and see its just fine. but wait if you want.

  4. #4
    rakwan's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    whats does it do

  5. #5
    BattleEye's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    196
    Reputation
    10
    Thanks
    80
    My Mood
    Paranoid
    Quote Originally Posted by rakwan View Post
    whats does it do
    it modifys the registry to the location of the launcher.bat witch makes it portable
    it also launches the game. "it is a Really simple launcher it opens IE types in your login runs the game Closes IE. it also Makes the game Portable"

  6. #6
    djrubenmp3's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In JackInDaBox
    Posts
    586
    Reputation
    10
    Thanks
    493
    My Mood
    Psychedelic
    Good work I guess..

  7. #7
    -*Koki-*'s Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    581
    Reputation
    54
    Thanks
    5,800
    this is LEECHED.. you didn't make it at all

  8. #8
    BattleEye's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    196
    Reputation
    10
    Thanks
    80
    My Mood
    Paranoid
    Quote Originally Posted by -*Koki-* View Post
    this is LEECHED.. you didn't make it at all
    I'm the one who posted it at the other site maybe. I like to share
    Pm me the page. and if you want i can prove it by sending you a pm from that site. if i posted it there

    Please don't accuse people of leaching especially if you don't know who made it in the first place.
    Last edited by siahtekrr; 08-20-2012 at 08:46 PM. Reason: rephrase

  9. #9
    TP4ng0l1n's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    1
    maybe someone can approve it? -.-"

  10. #10
    Stimulate's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    The Netherlands
    Posts
    1,416
    Reputation
    77
    Thanks
    126
    My Mood
    Angelic
    Quote Originally Posted by TP4ng0l1n View Post
    maybe someone can approve it? -.-"
    There's nothing to approve.


    Thanks for posting! (:

    Please press thanks or rep if I helped you!

    A button says more than words!

  11. #11
    211070's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    At the forums
    Posts
    1,023
    Reputation
    10
    Thanks
    78
    Quote Originally Posted by Frooz View Post
    There's nothing to approve.


    Thanks for posting! (:
    Yes there is.

  12. #12
    Stimulate's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    The Netherlands
    Posts
    1,416
    Reputation
    77
    Thanks
    126
    My Mood
    Angelic
    Quote Originally Posted by 211070 View Post
    Yes there is.
    There's no file (:

    And don't bump threads older than 1 week please (you can be banned for breaking the rules, u know?)

    Please press thanks or rep if I helped you!

    A button says more than words!

Similar Threads

  1. [Release] [Portable] Battlefield Heroes
    By siahtekrr in forum Battlefield Heroes Hacks
    Replies: 17
    Last Post: 03-18-2012, 01:56 PM
  2. [Release] Portable Battlefield Heroes
    By §☻$oo$☻§ in forum Battlefield Heroes Hacks
    Replies: 3
    Last Post: 07-03-2011, 08:46 AM
  3. Selling Battlefield Heroes BETA and Quake Live BETA accounts
    By noobzor in forum Trade Accounts/Keys/Items
    Replies: 1
    Last Post: 02-23-2009, 04:55 PM
  4. Selling Battlefield heroes beta account and Quake Live
    By noobzor in forum Trade Accounts/Keys/Items
    Replies: 0
    Last Post: 10-12-2008, 09:37 AM
  5. Battlefield Heroes
    By Kung Fu Penguin31 in forum General
    Replies: 15
    Last Post: 06-01-2008, 09:57 AM

Tags for this Thread