by Bullit » Sat Oct 14, 2006 12:14 pm
by Bullit
Sat Oct 14, 2006 12:14 pm
You need to setup your template to envoke the subroutine when one of the ir keys is pressed.
Somewhere at the top of the template there is a section with statements like
A = REMOCON(1) 'this receives input from the IR controller
'then the on goto statement goes to the proper K# based upon the value received, if 0 (no inout received) then it just restarts the loop otherwise it goes to the proper K# as below I have K18 the 'E key on the controller does a gosub to my pushup and then when it returns it goes to main_exit and then restarts the loop of looking for input from the IR controller.
On A goto MAIN, K1, K2, K3........,K18.....
K18: ' E
GOSUB pushup
GOTO main_exit
I hope this helps.
You need to setup your template to envoke the subroutine when one of the ir keys is pressed.
Somewhere at the top of the template there is a section with statements like
A = REMOCON(1) 'this receives input from the IR controller
'then the on goto statement goes to the proper K# based upon the value received, if 0 (no inout received) then it just restarts the loop otherwise it goes to the proper K# as below I have K18 the 'E key on the controller does a gosub to my pushup and then when it returns it goes to main_exit and then restarts the loop of looking for input from the IR controller.
On A goto MAIN, K1, K2, K3........,K18.....
K18: ' E
GOSUB pushup
GOTO main_exit
I hope this helps.