fawzy_i_05
26th February 2014, 08:27
Dear All,
How can i block modify or add filed via keyboard only the user can use barcode scanner to fill the data
mark_h
26th February 2014, 17:47
Maybe LN is different, but in 4c4 I do not know of a command that tells weather the input is from a scanner or the keyboard. I guess if you used a preamble on the barcode scanner your code could check for that - if the preamble is not correct, pop up a message and ask again.
fawzy_i_05
4th March 2014, 00:41
thanks Mark,
I will search how to disable preamble
fawzy_i_05
11th March 2014, 20:34
Dear Mark_h
can we solve this issue by create an event "evt.keypress.key" and create loop message? does this work around acceptable
function capture.event()
{
|message(str$(asc("a")))
long event(EVTMAXSIZE)
while true
on case evt.keypress.key(event)
case 97:
message("Thank You!!!!")
end()
break
DEFAULT:
message("Thank You!!!!")
endcase
endwhile
}
mark_h
12th March 2014, 15:34
I think so - not 100% sure, but if you set the pre-amble to something then check for it in something like that it should work. I have never done anything like that - most I did is create barcodes with a tab on the end to just move to the next field.