Just before where the code to do the autocomplete starts, put in:-

if not(member("theCheckbox").hilite) then exit

....assuming that the rest of the handler is not needed if autocomplete is not
enabled, if that is the case then just enclose that code in an if...then..end if
block with the same check as above.

Andrew