-- a simple script to cancel animations in stardew valley
-- edit the second to last line of this script to change the keybind
local event_sender = require('event_sender')
local event_handler = require('event_handler')
local shortcuts = require('shortcuts')
local u = require('utils')
local function cancel_animation()
event_sender.down("ShiftRight")
event_sender.down("Delete")
event_sender.down("KeyR")
u.sleep(0.1)
event_sender.up("KeyR")
event_sender.up("Delete")
event_sender.up("ShiftRight")
end
shortcuts.addShortcut("F8", cancel_animation)
event_handler.startHandler()
A2M8!
A2M8 allows you to write lua scripts that automate things for any platform
Create scripts!
-- a simple script to cancel animations in stardew valley
-- edit the second to last line of this script to change the keybind
local event_sender = require('event_sender')
local event_handler = require('event_handler')
local shortcuts = require('shortcuts')
local u = require('utils')
local function cancel_animation()
event_sender.down("ShiftRight")
event_sender.down("Delete")
event_sender.down("KeyR")
u.sleep(0.1)
event_sender.up("KeyR")
event_sender.up("Delete")
event_sender.up("ShiftRight")
end
shortcuts.addShortcut("F8", cancel_animation)
event_handler.startHandler()