[MZ]Question about orangescreenshot saver

Hi everyone.
Im using the plugin OrangescreenshotSaver and everything goes fine.
But i want to execute the plugin without use printscreen key, i want to use a script code.
Im using this, but nothing happens inside game.
1667255327570.png

1667255349132.png

Anyone can help me?
Looks to me like the plugin is using an IIFE. Rather than use $.saveScreenshot(), you could try using OrangeScreenshotSaver.saveScreenshot().

The IIFE lets the plugin developer use a shorthand for their own namespace (or anything else they like) that doesn't work elsewhere in the engine.
Looks to me like the plugin is using an IIFE. Rather than use $.saveScreenshot(), you could try using OrangeScreenshotSaver.saveScreenshot().

The IIFE lets the plugin developer use a shorthand for their own namespace (or anything else they like) that doesn't work elsewhere in the engine.
Worked! thanks

Original thread: https://forums.rpgmakerweb.com/threads/mz-question-about-orangescreenshot-saver.152377/