Das Forum

Help writing scripts

Autor Antworten
S1LNTR34P3R Saturday 7 June 2014 at 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 Saturday 7 June 2014 at 22:03
Quentin PÂRISAnonymous

Hi,

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

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

S1LNTR34P3R Sunday 8 June 2014 at 0:22
S1LNTR34P3R

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