Hello!
For a school project, we are going to make a machine that will register bottles recycled, and give a prize to random recyclers. We have got a solution that can scan barcodes and paste them into excel in a vertical row. Every student also has a id-card with a barcode on. What we need help with, is to create a script that can do this:
1: When the ID-card is scanned, it needs to make a "category", or some other way to organize different pupils (so we can pick winner).
2: Then when bottles and cans are scanned, the codes need to be "connected" or organized under or together with the student id-code, and it would be nice to have a counter to see how many bottles each student has deposited. And maybe a "total bottles" counter as well?
3: Then it has to "reset" for a new student to be able to scan his/her card and deposit their bottles.
An example for the code on a bottle is "7038010043888", and an id card is: "5427771". Im guessing it should be possible to sort them based on length? I think all id-cards and bottles have the same length of 13 and 7 digits.
If anyone wants to either help make this, or completely create it would help us a lot.
Thank you so much, any help is appreciated.
Both we and the environment thanks you
For a school project, we are going to make a machine that will register bottles recycled, and give a prize to random recyclers. We have got a solution that can scan barcodes and paste them into excel in a vertical row. Every student also has a id-card with a barcode on. What we need help with, is to create a script that can do this:
1: When the ID-card is scanned, it needs to make a "category", or some other way to organize different pupils (so we can pick winner).
2: Then when bottles and cans are scanned, the codes need to be "connected" or organized under or together with the student id-code, and it would be nice to have a counter to see how many bottles each student has deposited. And maybe a "total bottles" counter as well?
3: Then it has to "reset" for a new student to be able to scan his/her card and deposit their bottles.
An example for the code on a bottle is "7038010043888", and an id card is: "5427771". Im guessing it should be possible to sort them based on length? I think all id-cards and bottles have the same length of 13 and 7 digits.
If anyone wants to either help make this, or completely create it would help us a lot.
Thank you so much, any help is appreciated.
Both we and the environment thanks you