SendRexxCommand - cannot get result

Discuss any general programming issues here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

SendRexxCommand - cannot get result

Post 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$)
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: SendRexxCommand - cannot get result

Post 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
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5887
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SendRexxCommand - cannot get result

Post 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 :)
Post Reply