Forums

Help writing scripts

Auteur Réponses
S1LNTR34P3R Samedi 7 Juin 2014 à 17:36
S1LNTR34P3R

Hey,

I've read half of the docs, and found them long and tedious. I have taought myself Java, and HTML, so I'm assuming this can't be too complitaed to pickup.

I have a file, let's call it file.exe, if launched it has a gui for three differnt processess (external from file.exe). All of these need to be completed for the program to be installed correctly. I'm assuming just launching file.exe in PlayOnLinux should be enough. Otherwise how would I go about doing this?

Would I have to write a script? Such as:

[code language=playonlinux]
#! /bin/bash
["$PLAYONLINUX" = ""]  && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_SetupWindow_Install
POL_SetupWindow_Close
exit
[/code]

I didn't see POL_SetupWindow_Install as an actual method in Annex. But i'm assuming it'd be close to this.

 

Any help is greatly appreciated!

S1L3NTR34P3R

Quentin PÂRIS Samedi 7 Juin 2014 à 22:03
Quentin PÂRISAnonymous

Hi,

You'd better read completely the documentation here : http://www.playonmac.com/en/documentation.html

Everything is clearly explained. It should help you to understand the basic concepts needed to write a clean script.

S1LNTR34P3R Dimanche 8 Juin 2014 à 0:22
S1LNTR34P3R

Okay :/
I was really hoping I wouldn't need to. I guess I should anyways.
Thanks!

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com