Scan a menu code

Keep the code inside the frame