Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple BAT Script for Windows #422

Open
CtrlFiveCode opened this issue Jan 14, 2025 · 0 comments
Open

Simple BAT Script for Windows #422

CtrlFiveCode opened this issue Jan 14, 2025 · 0 comments

Comments

@CtrlFiveCode
Copy link

I have written a simple BAT script designed to assist users in claiming free games with minimal modifications required.

Below is the output generated by the script:


========================================
=          F R E E   G A M E S         =
=             C L A I M E R            =
========================================


----------------------------------------
   Processing Account: User 1
----------------------------------------

Checking for Free Games...
2025-01-14 12:24:30.229 started checking epic-games
Adding webgl.disabled to data\browser\prefs.js
Signed in as User1
Free games: [ 'https://store.epicgames.com/en-US/p/turmoil-26318a' ]
Current free game: Turmoil
  Already in library! Nothing to claim.


----------------------------------------
   Processing Account: User 2
----------------------------------------

Checking for Free Games...
2025-01-14 12:24:46.749 started checking epic-games
Adding webgl.disabled to data\browser1\prefs.js
Signed in as User2
Free games: [ 'https://store.epicgames.com/en-US/p/turmoil-26318a' ]
Current free game: Turmoil
  Already in library! Nothing to claim.


========================================
=      All (2) Accounts Processed!     =
========================================

Press any key to continue . . .

Claim.bat Script:

@echo off

:: Print Header
echo.
echo ========================================
echo =          F R E E   G A M E S         =
echo =             C L A I M E R            =
echo ========================================
echo.

:: Change to Target Directory
D:
timeout /t 2 >nul
cd "D:\FiveCode\Programs\Free Games Claimer"
timeout /t 2 >nul

set "SHOW=1"

:: Initialize Counters
set /a accountCount=0

:: Process Each Account
call :ProcessAccount "User 1" "data/browser" "email_1" "password_1"
timeout /t 5 >nul
call :ProcessAccount "User 2" "data/browser1" "email_2" "password_2"
timeout /t 5 >nul

:: End of Script
echo.
echo ========================================
echo =      All (%accountCount%) Accounts Processed!     =
echo ========================================
echo.
pause
exit /b

:ProcessAccount
:: Parameters: %1 = NAME, %2 = BROWSER_DIR, %3 = EG_EMAIL, %4 = EG_PASSWORD
set "NAME=%~1"
set "BROWSER_DIR=%~2"
set "EG_EMAIL=%~3"
set "EG_PASSWORD=%~4"

:: Increment Account Count
set /a accountCount+=1

:: Print Account Processing Details
echo.
echo ----------------------------------------
echo    Processing Account: %NAME%        
echo ----------------------------------------
echo.
echo Checking for Free Games...
node epic-games
echo.
exit /b

Important Notes:

  • Please ensure to change the directory to where you have the claimer stored.
  • I keep "SHOW=1" in case of captcha; I find that the easiest way to fill them.
  • Ensure each account has a different "data/browser"; I just increment mine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant