So how would I force an input on the tv to video2 from an on change property within a receiver module? My non working line of code is in bold...
Description of my issue: I have the PC hooked directly to my TV, but the PCs audio goes to the receiver. How does premise handle something like that (I'm guessing it can't without code)?
My problem is my PC is my PVR and my mp3 player are used for msense. This would mean the PVR and soundcard objects must share the same input on the receiver for msense to select the correct input right? If I play a DVD, the tv needs to switch to the receivers video output on VideoIn1. If I use the PVR the TV must switch to VideoIn2...
I thought I could solve most of my problems by hard coding commands on how to switch the TV within the receivers module.
OnChangeOnNewData would have code like this for the receiver as the receiver does 2 way communication:
'When new data is received
If sysevent.newVal = True Then
'store received code
this.lastRx = this.RxTextLine
this.lastRxLen = len(this.RxTextLine)
'Read incoming ascii data line by line
For i = 0 To this.RxLinesRemaining
If len(this.RxTextLine) < 12 then
'Read queued command
Select Case this.RxTextLine
'If received command matches any of these...Case "!1SLI03": 'Input1 - AUX1 - HTPC - PVR
'make sure PVR is always on when input is selected.
Home.LivingRoom.PVR.SetValueForced "PowerState", true
'make sure the TV input is set correctly
Home.LivingRoom.Television.SetValueForced "CurrentSource", "VideoIn2"
....
There's always more than one way to do something!

Some things are more easily accomplished with scripting and others with logic diagrams. I tend to lean towards scripting but I've found logic diagrams useful as well (
see this post).