Darrel, you said my code never went to gosub, . . . the if bytea != 0 then gosub combo, will not do it?
In the first post, that IF statement was After a GOTO statement. So it never gets executed. I see you've moved it in the latest version. But the rest ruined it.

I had actually addressed this problem earlier, then realized I was answering skimasks post instead of the original one. I guess I get to say it again.

First off, when you see a whole buch of IF statements one after the other, each one trying to catch a certain set of circumstances, it's probably the wrong way to do it. And this one is a prime example.

Let's say that the first keypress is a seven. The first IF statement works fine.
Code:
if ((ByteA = 7) and (combocount = 0)) then
    combocount = %00000001
    pause 1000
else
    combocount = 0
endif
It recognizes the first digit of the combination, and sets combocount to 1

Then it continues on to the next IF statement...
Code:
if ((ByteA = 8) and (combocount = %00000001)) then
    combocount = %00000011
    pause 1000
else
    combocount = 0
endif
At this point ByteA does not equal 8 (it's still 7), so it goes to the ELSE clause where it zero's combocount and starts everything from scratch again. It'll never recognize more than 1 digit.

Then after all the IF's are done, there's nothing to stop it from opening the gate, even though it only received 1 keypress.

But from the sound of it, it did exactly what you told it to.
<br>