Page 1 of 1

SendRexxCommand - cannot get result

Posted: Thu Jun 13, 2013 10:28 pm
by djrikki
Hello,

Code: Select all

result$ = sendrexxcommand("MIXER","GETMASTER")
debugprint(result$)
RexxMast is running, Mixer is running.

The console output is always blank even though the Port and Command are valid.

The following alternative approach also does not work:

Code: Select all

Local result$ = RunRexxScript("OPTIONS RESULTS\nADDRESS MIXER\nGETMASTER",True)
debugprint(result$)

Re: SendRexxCommand - cannot get result

Posted: Thu Jun 13, 2013 11:13 pm
by djrikki
Never mind, got there in the end!

Code: Select all

Function Arexx:Mixer(direction)
	
	If direction = -1 ; Mute Master Volume
		RunRexxScript("ADDRESS MIXER\nMASTERMUTE",True)
	
	ElseIf direction = 1 ; Increase Master Volume
   		RunRexxScript("ADDRESS MIXER\nMASTERUP",True)
		
	ElseIf direction = 0 ; Decrease Master Volume
   		RunRexxScript("ADDRESS MIXER\nMASTERDOWN",True)
    EndIf	    

    Local newvol = RunRexxScript("OPTIONS RESULTS\nADDRESS MIXER\nGETMASTER\nRETURN RESULT",True)
    Local mutestate = RunRexxScript("OPTIONS RESULTS\nADDRESS MIXER\nISMUTEMASTER\nRETURN RESULT",True)
EndFunction

Re: SendRexxCommand - cannot get result

Posted: Fri Jun 14, 2013 2:29 pm
by airsoftsoftwair
Maybe do not post such topics in Hollywood bugs next time. Only things where you are quite certain that it is a bug, thanks :)