How xiaogu-g2020/deltaforcemarketbot works
DeltaForceMarketBot is a desktop automation tool for buying items in the Delta Force in-game market. Users set price thresholds and purchase modes in the GUI, position the game on an item, then use F8/F9 to start or stop the worker. The worker reads the displayed price (or estimates it from balance changes), applies the normal or key-card buying rules, and asks the bot to buy, refresh, or reopen the item page. The README also documents convertible-item handling and balance-based pricing. The main source excerpt is partial, so uncertain worker details are omitted.
Main entry points: BuyBot.py BuyBot · DFMarketBot.py Purchase worker · AppGUI.py Settings GUI · utils.py Mouse automation
Components 11
User controls
- Settings GUI
GUI/AppGUI.py - F8/F9 monitor
DFMarketBot.py - Keyboard hook
DFMarketBot.py
Automation runtime
- Application setup
DFMarketBot.py - Purchase worker
DFMarketBot.py
Price perception
- EasyOCR reader
backend/BuyBot.py - Screenshot helpers
backend/utils.py
Game interaction
- BuyBot
backend/BuyBot.py - Mouse automation
backend/utils.py
Other components
- User
- Delta Force game
Connections 14
- User → Settings GUI: sets options
- Application setup → Settings GUI: creates window
- Settings GUI → Purchase worker: updates parameters
- User → Keyboard hook: presses F8/F9
- Keyboard hook → F8/F9 monitor: reports keys
- F8/F9 monitor → Purchase worker: starts or stops
- Purchase worker → BuyBot: requests price and actions
- BuyBot → Screenshot helpers: captures price region
- BuyBot → EasyOCR reader: recognizes text
- BuyBot → Screenshot helpers: captures balance region
- BuyBot → Mouse automation: moves and clicks
- Purchase worker → Delta Force game: reads displayed state
- Mouse automation → Delta Force game: controls market UI
- BuyBot → Delta Force game: presses Escape