Refreshes Epic Seven's Secret Shop until the bookmarks you actually want show up. Image matching scales to any window size. Random delays, click offsets, and scroll variation so it does not look like a metronome.
Fork of sya1999's Epic Seven Secret Shop Refresh. Navigate to the Secret Shop first. ESC stops it.
- Multi-Resolution Support - Works with any window size (auto-scales detection images)
- Image-Based Detection - Uses template matching instead of fixed coordinates
- Anti-Detection Measures - Random delays, click offsets, and scroll variations
- Multiple Item Support - Detects and purchases all desired items in a single view
- Safety Checks - Pauses if you navigate away from the shop
- Out of Skystone Check - Stops script if the user is out of skystones
- Live Shopping Display - Real-time overlay showing items purchased, refresh counter, and elapsed time
- Purchase History Summary - View aggregated statistics from all shopping sessions with per-item efficiency rates
- Debug Mode - Detailed output and screenshot saving for troubleshooting
- Robust Error Handling - Clear error messages for invalid input formats
- Python 3.9+ (tested with 3.12)
- Epic Seven running in windowed mode
- Navigate to the Secret Shop before starting
- Clone or download this repository
- Install dependencies:
pip install -r requirements.txt
- Open Epic Seven and navigate to the Secret Shop
- Run the application:
python .\\E7SecretShopRefresh.py - Select your game window from the dropdown (should be auto-detected)
- Check the items you want to purchase (Covenant, Mystic, Friendship bookmarks)
- (Optional) Set a Skystone budget
- Click Start Refresh
- Press ESC to stop at any time
# Normal mode
python .\\E7SecretShopRefresh.py
# Debug mode (detailed output)
python .\\E7SecretShopRefresh.py --debug
# Debug mode with screenshot saving (for troubleshooting)
python .\\E7SecretShopRefresh.py --debug --screenshot
# Show window info and scaling details, then exit
python .\\E7SecretShopRefresh.py --info
# Use custom reference size for your own screenshots
python .\\E7SecretShopRefresh.py --size=1920x1080
# Combine options
python .\\E7SecretShopRefresh.py --debug --screenshot --size=1920x1080| Option | Description |
|---|---|
--debug |
Enable debug mode with detailed logging output |
--screenshot |
Save debug screenshots of search areas (requires --debug) |
--info |
Display available windows and scaling information, then exit |
--size=WIDTHxHEIGHT |
Specify custom reference size for assets (e.g., --size=1920x1080) |
Note:
- If an invalid format is provided to
--size, the program will display a clear error message and exit. - The
--screenshotoption works best with--debugenabled to see when and where screenshots are saved.
| Setting | Description |
|---|---|
| Window Title | Select your game window from the dropdown or type the exact window name |
| Covenant/Mystic/Friendship | Toggle which bookmark types to purchase |
| Skystone Budget | Maximum skystones to spend (leave empty for unlimited) |
| Auto Placement | Automatically position the game window |
| History Button (📊) | Click the button in the top-right corner to view aggregated purchase history statistics |
pip install pyinstaller
pyinstaller .\\E7SecretShopRefresh.specpyinstaller -F --noconsole -i assets/icon.ico .\\E7SecretShopRefresh.pyThe executable will be created in the dist folder.
Note: When distributing, you need to include the assets folder alongside the executable, or use the spec file which bundles assets automatically.
- Administrator Mode: If using the PC client (not an emulator), run the program as Administrator
- Monitor Must Stay On: The program takes screenshots to detect items - don't turn off your display
- Test First: Manually refresh until a bookmark appears, then start the program to verify detection works
- Stay in Shop: The program assumes you're already in the Secret Shop - it won't navigate there automatically
- Run with
--debugflag to see confidence scores - If confidence is low (<0.8), the images may need updating for your resolution
- Use
--infoto check your window size and scaling information - Try providing custom screenshots with
--size=WIDTHxHEIGHT - Use
--screenshot(with--debug) to save debug images for analysis
The anti-detection system adds random offsets to clicks. If buttons are consistently missed, check if your window has unusual borders or scaling.
Make sure you're in the Secret Shop before starting. The safety system will pause if it can't find the refresh button.
When using --size, make sure to use the format WIDTHxHEIGHT (e.g., 1920x1080). Both values must be valid integers.
If the included images don't work for your setup:
- Take screenshots of the items/buttons at your resolution
- Save them in the
assetsfolder with the same names:item_covenant.png,item_mystic.png,item_friendship.png(items)button_buy.png,button_refresh.png,button_refresh_confirm.png,button_buy_confirm.png(buttons)button_buy_sold.png(sold indicator)
- Run with
--size=WIDTHxHEIGHTmatching your screenshot resolution
Purchase history is automatically saved to the ShopRefreshHistory folder as CSV files. Each session records:
- Timestamp
- Duration
- Refresh count
- Skystone spent (calculated as refresh_count × 3)
- Gold spent (total cost of all purchased items)
- Items purchased (count for each bookmark type: Covenant, Mystic, Friendship)
CSV files are named refreshAttempt[Cov][Mys][Frie].csv based on which items you're tracking. Files are created automatically when you start shopping.
Click the 📊 History button in the top-right corner of the main window to view aggregated statistics across all your shopping sessions:
- Total Refreshes - Sum of all refreshes across all sessions
- Total Time - Combined duration of all shopping sessions
- Total Skystone/Gold Spent - Cumulative spending across all sessions
- Items Purchased - Per-item statistics showing:
- Item count with icon
- Efficiency percentage (items found per refresh, calculated only from refreshes that searched for that specific item)
- Format:
amount / percentage%
The efficiency percentage is calculated per-item, accounting for the fact that not all refreshes search for all items (e.g., if Friendship bookmarks aren't always tracked, their efficiency is only calculated from refreshes where they were being searched).
- Out of Gold check - I .. have too much Gold to check that currently, sorry =D
See LICENSE file.
Happy refreshing! May your bookmarks be plentiful!
