playMaker

Author Topic: Is possible to launch a .exe windows app with Playmaker ?  (Read 1861 times)

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Is possible to launch a .exe windows app with Playmaker ?
« on: February 22, 2022, 09:54:21 AM »
hi all guys !!

as i wrote in the title ,

I want to launch an external app with arguments clicking a button with Playmaker actions ...

for Example , can i launch

c:\emulators\retroarch.exe -L [core path] [romname.zip]

???

take in mind that the argument romname.zip should be variable , and changes ...


thank you very much :D

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #1 on: February 23, 2022, 09:45:47 AM »
Hi.
Are you looking for something like this?

https://answers.unity.com/questions/16675/running-an-external-exe-file-from-unity.html
If so let me know, i can see if i can make an action for it.

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #2 on: February 23, 2022, 11:14:58 AM »
hello djaydino ! How are you ?? :)

Yes , exactley !! but the the actions should need to have to change paths , in this case , change the Retroarch.exe path and Roms path ...

LocalRetroarch.exe path (editable variable)\retroarch.exe -L ( fixed arguments) Libretrocore.dll RomPath (editable variable)\Romname.zip

Is possible ??? I've solved with ProcessStart.info method in a C# script, and it works, but it should be better to use a single Playmaker Action ...

It is possible for you ? :D

thanks !!

Maart

  • Junior Playmaker
  • **
  • Posts: 88

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #4 on: February 23, 2022, 08:30:03 PM »
Hi.
The string you can make with a Build String action.

i will see if i can make it tomorrow

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #5 on: February 27, 2022, 12:35:49 PM »
hi djayadino !!

I've tryed the action "build string" and then send to "WWW object" action , but the program doesn't start .... what's wrong ???

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #6 on: March 23, 2022, 11:31:33 AM »
Hi,
Sorry for the late reply.
Can you show the target string it uses

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #7 on: March 23, 2022, 04:07:09 PM »
hi !! :)

the format of the command line is :

[retroarch path]\retroarch.exe -l [Core emulatore path]\Fb_neo.dll [Rom path]/gametoplay.zip

I need 2 Global variables for the [retroarch path] and for [Rom path] editable by 2 input fields in options menu , and then save by Playerprefs action.

so, what is your solution ? :D


As alwasys ... thank you

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #8 on: April 17, 2022, 12:45:54 PM »
Buildstring will let you use multiple inputs 2 of them could be variables

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #9 on: April 19, 2022, 04:36:28 AM »
Hello Mart !!

I 've follow your instructions , but once i created the string , what i have to do next ??

"WWW object" action ??

thanks !!

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #10 on: April 19, 2022, 06:28:57 PM »
I think this is a better solution for you
it will allow you to run an exe file from an action and you are able to pass arguments
I tested it with scummvm, the test I did uses an argument to start monkey island full screen. (I didn't have retroarch) but you get the point ;)
Can someone add this to the ecosystem?


Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #11 on: April 19, 2022, 06:33:24 PM »
the build string solution you can use to build a string like C:\Program Files\ScummVM\scummvm.exe then use the action OpenUrl with that string as the URL

markettounity

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Is possible to launch a .exe windows app with Playmaker ?
« Reply #12 on: April 22, 2022, 06:11:22 AM »
Ok, Maart ... you are officially my super-hero !!

you saved my brain !! thaaank you very much !! :D :D