Hi,
I haven't looked into it in detail but perhaps you could use ARRAYREAD with the WAIT or WAITSTR modifer to do what you want?
Code:
Value VAR BYTE[6] ' Array of 6 bytes for the "new values"
DummyVAR 'Needed for ArrayWrite to do what we want - possibly
ARRAYREAD Value, 6, NoMatch, [WAIT("123456"), DummyVAR] ' Search the Value-array for 123456, jump to NoMatch if not found.
' Continue here if match is found
' ....
' ....
NoMatch:
' Continue here if no match was found
The above tries to match the array to a static string of 123456, if what you want to match is changing then use a second array for the "match condition" and use WAITSTR instead of WAIT. At least that's how I THINK it should work, I haven't actually tried it though.....
/Henrik.
Bookmarks