Skip to content

Instantly share code, notes, and snippets.

@phil-flip
phil-flip / mouseWheelie.py
Last active April 25, 2021 18:40
MouseWheelie - This script is designed to be able to use the mouse wheel in Space Engineers without any mods. (or any other Game that relies on Keypresses from 0-9)
# MouseWheelie by Phil
# This script is designed to be able to use the mouse wheel in Space Engineers without any mods on Windows. (of any other Game that relies on Key presses from 0-9)
# This is my first time using Python so sorry if it looks messy. It was designed to be functional.
# Dependencies needed: pynput, pygetwindow
# DISCLAIMER:
# This solution isn't perfect and it's recommended to rest around in a creative world first, before using in any production.
# Known bugs that cannot be solved with this script/my abilities to python:
# - Scrolling in your ship WILL trigger the actions mapped to the hotbar (thi s only is a problem, when you are using the the script without whitelisting keys)
# - Blocks that have multiple options will select a different block, when scrolled (as the game is slightly faster, then the script can switch)