Code to use an optical mouse as a scanner