I have already written about this in the github repository.
Shortly: I couldn’t find an event in obs-websocket
that would trigger when saving a screenshot. You need to first ask to add this event to the obs-websocket
repository.
I have made a request to add this feature obsproject/obs-websocket#1047