https://github.com/arsho/t_rex_bot
Google Chrome offline game (T Rex) bot using Python.
https://github.com/arsho/t_rex_bot
bot gui-automation mouse pyautogui rex
Last synced: 23 days ago
JSON representation
Google Chrome offline game (T Rex) bot using Python.
- Host: GitHub
- URL: https://github.com/arsho/t_rex_bot
- Owner: arsho
- Created: 2016-12-30T19:14:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T22:05:52.000Z (over 1 year ago)
- Last Synced: 2025-04-30T05:47:40.801Z (23 days ago)
- Topics: bot, gui-automation, mouse, pyautogui, rex
- Language: Python
- Size: 5.31 MB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Google Chrome offline game (T Rex) bot using Python.
**You need to turn off your internet connection to run this program.**
### How to use
- I prefer using Virtual environment to play with new libraries and packages so that my core packages remain unharmed.
Create and activate virtual environment:
```
python3 -m venv venv
source venv/bin/activate
```
- Install necessary packages:
```
pip install -r requirements.txt
```
- Ubuntu users should install `scrot` which is required to run the program:
```
sudo apt-get install scrot
```
If any error occurs add `--fix-missing`:
```
sudo apt-get install scrot -y --fix-missing
```
- Run the program:
```
python t_rex_bot.py
```#### (Optional)Running Python code using IDLE3 in Virtual Environment
To run IDLE3 while `venv` is activated use the following command. Then browse and open the file using `idle3`.
(venv)$ python -m idlelib.idle
## References
* [Pyautogui Examples](https://pyautogui.readthedocs.io/en/latest/#examples "Pyautogui Examples")
* [Chapter 18 – Controlling the Keyboard and Mouse with GUI Automation](https://automatetheboringstuff.com/chapter18/ "Chapter 18 – Controlling the Keyboard and Mouse with GUI Automation")#### Disclaimer: This application is still in development phase.