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 |
| 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 |
| 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: | |
| Execute Rule if: | Matches All |
Numberpad Value | Starts | 02 |
Numberpad Value | Length Equals | 13 |
##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: | |


