Skip to content

benny-dreamly/python-animation-cancelling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-animation-cancelling

Stardew Valley animation cancelling script written in python that works cross-platform on macOS and Windows.

Supported Operating Systems

Works on MacOS and Windows. Unfortunately, it does not yet work on linux, but I am working on getting linux compatibility sorted.

Required libraries

This script requires that you have pygetwindow and keyboard installed. To install these libraries simply run pip install pygetwindow and pip install keyboard. You can also run pip install pygetwindow keyboard to install all the required libraries all at once.

Running the script

On windows, simply run the script and it will check if your stardew valley is open. It works with SMAPI as well. If Stardew is not open, it will just close itself.

On macOS, the keyboard library I am using to get keyboard presses and actually make the macro work requires administrator permissions to run. In order to get the script to run, use this command: sudo python3 macro.py If administrator permissions are not granted to the script, it will fail to run. In order to launch the script, simply run ./launch-macro.sh in a new terminal window, and it should prompt you for your password, this does require that you are an admin on your mac.

Running the shell script is just a convenience, but you can also use the command above in a standalone terminal window as well. Thought I'd include the launching script anyway, if you aren't super savvy with the terminal. Controls

The space bar is bound to the macro. If you'd like to add a space whilst in game, press the delete key. That way, you don't have to constantly copy and paste your space bar in order to have a functioning keyboard.

FAQ

Why should I use this?

I decided to make this script because I couldn't find a way to do animation cancelling on my macbook. I downloaded an autohotkey script on my windows pc and it works flawlessly, but it just doesn't work on macOS. Hopefully you find this useful, and feel free to make any changes you feel are needed, or create an issue, and I can figure out how to get some additional features working.

About

Stardew Valley animation cancelling script written in python that works cross-platform on macOS and Windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published