Playnite Forums
Need help using a script in advance - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Playnite (https://playnite.link/forum/forum-1.html)
+--- Forum: Support and Troubleshooting (https://playnite.link/forum/forum-4.html)
+--- Thread: Need help using a script in advance (/thread-552.html)



Need help using a script in advance - NeoDev - 01-11-2021

Hello,

I don't know if I'll be able to be clear because I don't speak English very well ... But basically, there you go.

I would have liked to know if there is a variable to use in a batch or python script like for example {PlayniteDir}
but to retrieve the emulator folder entered in the "Action" tab as well as another variable for its access path?

So that you understand better what I want to do I give you an example:
echo {PlayniteDir}> test.txt // works fine, but I'm looking for a variable like {EmulatorDir} instead?


Otherwise there may be an alternative? The problem is that in the doc it lacks a little example of
what can be done in script ...

Thanks in advance,
NeoDev



RE: Need help using a script in advance - Crow - 01-11-2021

There's no variable to get emulator directory. You would have to use API to get that information. The problem is that game scripts currently don't have access to Playnite's API.


RE: Need help using a script in advance - NeoDev - 01-11-2021

Ok I see. Thank you very much for your answer !

Hoping it's possible in the future, honestly I feel like this is the one thing Playnite lacks.
In the use that I make of it anyway Smile