Hi, would it be possible, to add an option called "button-state" to saneopts.h ? "button-state" is an option of SANE_TYPE_INT with SANE_UNIT_NONE and SANE_CONSTRAINT_NONE and capability SANE_CAP_SOFT_DETECT (i.e. a read-only option).
If a frontend detects such an option, it can use a timer to query the option value repeatedly. The possible return value is one of the following values: #define SANE_BUTTON_STATE_NONE 0 #define SANE_BUTTON_STATE_SCAN 1 #define SANE_BUTTON_STATE_OCR 2 #define SANE_BUTTON_STATE_EMAIL 3 #define SANE_BUTTON_STATE_COPY 4 ...<and others if required> Or is there a better/an easier way to make the scanner buttons work? (Or is this already possible, and I'm just missing something :-/) Comments please :-) bb Michael