Code: Select all
set => this.musicPlayer__PID := musicPlayer__PID
I want to share musicPlayer__PID
Code: Select all
class musicPlayer {
musicPlayer__PID := unset
static Call(path, enableLoop := false, loopTime := 0 ) {
musicPlayer__PID := ""
if enableLoop == false
enableLoop := 0
Run('"musicplayerV1.py"' ' "' path '"' ' "' enableLoop '"' ' "' loopTime '"' , , ,&musicPlayer__PID )
this.musicPlayer__PID := musicPlayer__PID ;? dosn't work
set => this.musicPlayer__PID := musicPlayer__PID
}
static close(Pid?) {
if !IsSet(Pid){
ProcessClose(this.musicPlayer__PID)
}else{
ProcessClose(Pid)
}
}