Do you have to cancel the result popup window for it to work again?
I was trying to make this work, i think you should just need to increase that wait until it works. Maybe need an escape keypress or something.
This looks for status change and pushes the /lastsynth command when you go back to idle.
Code:
packets = require('packets')
windower.register_event('incoming chunk', function(id, data)
if id == 0x037 then
--0x30
local update = packets.parse('incoming', data)
if update.Status == 0 then
windower.send_command("wait 3;input /lastsynth")
end
end
end)