Barcode integration for meat section scale

This is how I did it, and to be honest, I have no idea how this really works. The only issue is that I need to click the CheckMark after the Numpad has the value:

27.85x00290

I thought having KeyCode 13 in the Action would do the trick, but if I put 13 in there, nothing happens.

BTW, this completely ignores the Barcode settings that I showed in the previous post. I don’t know how to make that work. Don’t have a scanner myself.


#Actions

##BC Store Value [Update Program Setting] (Action)##

Action Name: BC Store Value
Action Type: Update Program Setting
###Parameters:###
Setting Name: [:settingName]
Setting Value: [:settingValue]
Update Type: Update
Is Local: True

##BC Set Numpad [Set Number Pad Value] (Action)##

Action Name: BC Set Numpad
Action Type: Set Number Pad Value
###Parameters:###
Number Pad Type: NumberPad
Value: [:value]
Key Code: [:keyCode]

#Rules

##BC Barcode Entered - Add Order [Numberpad Value Entered] (Rule)##

Rule Name: BC Barcode Entered - Add Order
Event Name: Numberpad Value Entered
Rule Tags:
Custom Constraint List (2):
Execute Rule if: Matches All
Numberpad ValueStarts02
Numberpad ValueLength Equals13

##Actions (4):##

BC Store Value

Constraint: (none)

settingName: itemCode
settingValue: [='[:NumberpadValue]'.substr(2,5)]
BC Store Value

Constraint: (none)

settingName: itemPrice
settingValue: [=TN('[:NumberpadValue]'.substr(7,3) + '.' + '[:NumberpadValue]'.substr(10,2))]
MSG TEST

Constraint: (none)

MessageToDisplay: itemCode: {SETTING:itemCode}\ritemPrice: {SETTING:itemPrice}
BC Set Numpad

Constraint: (none)

value: [='{SETTING:itemPrice}' + 'x' + '{SETTING:itemCode}']
keyCode:
1 Like