billberet wrote:but i have a slight modification i need.
the sharp tv for the bedroom does not have a volume up and down for 232 commands. it only has a specific volume number (1-99)
VOLM20
VOLM40
etc.
any ideas on how to program this. I could use a slider maybe, instead of a volume up button and a volume down button.
what do you think?
I would just create events that set each of the possible the volume levels I would use (I probably wouldn't need all of them 0-99) and then I'd write 2 "conditional" volume control events (1 for up, 1 for down) that look at the "current volume level" or whatever variable I used to store the tv's reported volume level, that look something like - and these are only "examples", not "exactly" what the events would look like:
(for vol down)
"if %variable>lcdvol% = 01, run the event lcdvol00",else
"if %variable>lcdvol% = 02, run the event lcdvol01",else
"if %variable>lcdvol% = 03, run the event lcdvol02",else
"if %variable>lcdvol% = 04, run the event lcdvol03",else, etc...
(for vol up)
"if %variable>lcdvol% = 00, run the event lcdvol01",else
"if %variable>lcdvol% = 01, run the event lcdvol02",else
"if %variable>lcdvol% = 02, run the event lcdvol03",else
"if %variable>lcdvol% = 03, run the event lcdvol04",else, etc...
Since it may take you a few minutes to cut and paste 100 events and "if then, else statements", so you might want to test with 1 or 2 values first - just to make sure it's working.
A quicker way to do the same thing is just to find the "current volume level" save the numerical part as a variable, and add or subtract 1 from the that variable value and send the descrete volume command with the variable used for numerical part each button press, but I don't know if Steven got the code done for math "expressions" yet.
I hope this helps.
Samson