tusharparimi / fifa-bot

0 stars 0 forks source link

Need an escape or terminate loop code for while True loops #2

Closed tusharparimi closed 3 weeks ago

tusharparimi commented 4 weeks ago

Currently commented in screenshot_taker.py's main method,

https://github.com/tusharparimi/fifa-bot/blob/d0e0c9dbb92a83775706db4a30cbe60c783b599e/screenshot_taker.py#L37-L45

This breaks the show() as the display frame freezes.

Need this terminate loop support in controller.py's main method as well as in data_recorder.py

tusharparimi commented 3 weeks ago

This commit https://github.com/tusharparimi/fifa-bot/commit/3932061e629273801ca6f0a5c13d9900a10f0d70 fixes this with the same keyboard package but with keyboard.is_pressed(),

https://github.com/tusharparimi/fifa-bot/blob/3932061e629273801ca6f0a5c13d9900a10f0d70/screenshot_taker.py#L37-L45