Help to create an ENTER button for custom product keyboard

I basically want to replicate the function that the TICK does when keying in a number, for example if a barcode is keyed in and the tick pressed it adds that related product to the ticket.

What i want to do is create an auto command button using custom product buttons to replicate this so i can create an ENTER button next to my keypad. I dont know if we are able to read a value already entered into the keypad to ‘submit’ this to make an order add to the ticket

We managed to find a way to make the keypad buttons work, i wonder if there is a way to read a value sitting in the input field at the bottom of the screen?

The number 00001 enter in the input field at the bottom of the screen is the barcode for my test product, if i press the TICK it will add test product to the ticket

Press TICK

What i would like to do is once the barcode has been entered is to press my ENTER button to add the product to the ticket, i just cant figure out how to read the value entered in the keypad input field, if this is even possible?

I can create a clear CLR button to remove all numbers entered into the keypad field by just using set number pad action with no value, struggling with the ENTER though. Any help if this is possible would be great, thanks as always :slight_smile:

Have you tried custom keyboard syntax with just the single return key? It should work.

Do i put the single return key in the action or do i put it in the value column of the product properties settings next to the auto command column?

I thought id tried it but may not have put it in the correct place, is the correct syntax < enter > ?

See here…

So…

"<enter>"
1 Like

Yea thats what i tried, ive tried it directly in the update number pad action and it doesnt work it simply displays < enter > in the number pad box at the bottom of the screen

I also tried the backspace syntax to delete one number instead of everything thats has been entered but that does t work either

Could it be that the update numpad action doesnt support the custom keyboard shortcuts? Del, BS, enter etc etc

Hmm. Set numberpad value action does not support that but this is a good idea. For next refresh I added a small feature to simulate keyboard inputs. You can use “KeyCode” parameter to send a keyboard key to the active screen. So setting keycode to 13 will be enter or 8 will be backspace.

2 Likes

Excellent thanks @emre!! do you have a list of all the ‘key codes’? I think i remember there being one on here a while ago, ill have another look but if you have it to hand thatd be great

Thanks again :slight_smile:

EDIT - nevermind I found them :smile:

SYM    DEC    Desc

,    44    Comma  (or use 188)
.    46    Period, dot or full stop  (or use 190)

0    48    Zero
1    49    One
2    50    Two
3    51    Three
4    52    Four
5    53    Five
6    54    Six
7    55    Seven
8    56    Eight
9    57    Nine

:    58    Colon
;    59    Semicolon

*    42    Asterisk
/    47    Slash or divide  (or use 191)
+    43    Plus
-    45    Hyphen

#    35    Number
$    36    Dollar
%    37    Percent
@    64    At symbol

ESC    27    Escape
      127    Delete
BS    8    Back Space
HT    9    Horizontal Tab
LF    10    Line Feed
VT    11    Vertical Tab
FF    12    Form Feed
CR    13    Carriage Return

    32    Space

A    65    Uppercase A
B    66    Uppercase B
C    67    Uppercase C
D    68    Uppercase D
E    69    Uppercase E
F    70    Uppercase F
G    71    Uppercase G
H    72    Uppercase H
I    73    Uppercase I
J    74    Uppercase J
K    75    Uppercase K
L    76    Uppercase L
M    77    Uppercase M
N    78    Uppercase N
O    79    Uppercase O
P    80    Uppercase P
Q    81    Uppercase Q
R    82    Uppercase R
S    83    Uppercase S
T    84    Uppercase T
U    85    Uppercase U
V    86    Uppercase V
W    87    Uppercase W
X    88    Uppercase X
Y    89    Uppercase Y
Z    90    Uppercase Z

a    97    Lowercase a
b    98    Lowercase b
c    99    Lowercase c
d    100    Lowercase d
e    101    Lowercase e
f    102    Lowercase f
g    103    Lowercase g
h    104    Lowercase h
i    105    Lowercase i
j    106    Lowercase j
k    107    Lowercase k
l    108    Lowercase l
m    109    Lowercase m
n    110    Lowercase n
o    111    Lowercase o
p    112    Lowercase p
q    113    Lowercase q
r    114    Lowercase r
s    115    Lowercase s
t    116    Lowercase t
u    117    Lowercase u
v    118    Lowercase v
w    119    Lowercase w
x    120    Lowercase x
y    121    Lowercase y
z    122    Lowercase z

Keycodes are similar for enter, backspace, etc but This is keyboard hardware emulation so it is slightly different.

LBUTTON = 1,
RBUTTON = 2,
CANCEL = 3,
MBUTTON = 4,
XBUTTON1 = 5,
XBUTTON2 = 6,
BACK = 8,
TAB = 9,
CLEAR = 12,
RETURN = 13,
SHIFT = 16,
CONTROL = 17,
MENU = 18,
PAUSE = 19,
CAPITAL = 20,
KANA = 21,
HANGEUL = 21,
HANGUL = 21,
JUNJA = 23,
FINAL = 24,
HANJA = 25,
KANJI = 25,
ESCAPE = 27,
CONVERT = 28,
NONCONVERT = 29,
ACCEPT = 30,
MODECHANGE = 31,
SPACE = 32,
PRIOR = 33,
NEXT = 34,
END = 35,
HOME = 36,
LEFT = 37,
UP = 38,
RIGHT = 39,
DOWN = 40,
SELECT = 41,
PRINT = 42,
EXECUTE = 43,
SNAPSHOT = 44,
INSERT = 45,
DELETE = 46,
HELP = 47,
VK_0 = 48,
VK_1 = 49,
VK_2 = 50,
VK_3 = 51,
VK_4 = 52,
VK_5 = 53,
VK_6 = 54,
VK_7 = 55,
VK_8 = 56,
VK_9 = 57,
VK_A = 65,
VK_B = 66,
VK_C = 67,
VK_D = 68,
VK_E = 69,
VK_F = 70,
VK_G = 71,
VK_H = 72,
VK_I = 73,
VK_J = 74,
VK_K = 75,
VK_L = 76,
VK_M = 77,
VK_N = 78,
VK_O = 79,
VK_P = 80,
VK_Q = 81,
VK_R = 82,
VK_S = 83,
VK_T = 84,
VK_U = 85,
VK_V = 86,
VK_W = 87,
VK_X = 88,
VK_Y = 89,
VK_Z = 90,
LWIN = 91,
RWIN = 92,
APPS = 93,
SLEEP = 95,
NUMPAD0 = 96,
NUMPAD1 = 97,
NUMPAD2 = 98,
NUMPAD3 = 99,
NUMPAD4 = 100,
NUMPAD5 = 101,
NUMPAD6 = 102,
NUMPAD7 = 103,
NUMPAD8 = 104,
NUMPAD9 = 105,
MULTIPLY = 106,
ADD = 107,
SEPARATOR = 108,
SUBTRACT = 109,
DECIMAL = 110,
DIVIDE = 111,
F1 = 112,
F2 = 113,
F3 = 114,
F4 = 115,
F5 = 116,
F6 = 117,
F7 = 118,
F8 = 119,
F9 = 120,
F10 = 121,
F11 = 122,
F12 = 123,
F13 = 124,
F14 = 125,
F15 = 126,
F16 = 127,
F17 = 128,
F18 = 129,
F19 = 130,
F20 = 131,
F21 = 132,
F22 = 133,
F23 = 134,
F24 = 135,
NUMLOCK = 144,
SCROLL = 145,
LSHIFT = 160,
RSHIFT = 161,
LCONTROL = 162,
RCONTROL = 163,
LMENU = 164,
RMENU = 165,
BROWSER_BACK = 166,
BROWSER_FORWARD = 167,
BROWSER_REFRESH = 168,
BROWSER_STOP = 169,
BROWSER_SEARCH = 170,
BROWSER_FAVORITES = 171,
BROWSER_HOME = 172,
VOLUME_MUTE = 173,
VOLUME_DOWN = 174,
VOLUME_UP = 175,
MEDIA_NEXT_TRACK = 176,
MEDIA_PREV_TRACK = 177,
MEDIA_STOP = 178,
MEDIA_PLAY_PAUSE = 179,
LAUNCH_MAIL = 180,
LAUNCH_MEDIA_SELECT = 181,
LAUNCH_APP1 = 182,
LAUNCH_APP2 = 183,
OEM_1 = 186,
OEM_PLUS = 187,
OEM_COMMA = 188,
OEM_MINUS = 189,
OEM_PERIOD = 190,
OEM_2 = 191,
OEM_3 = 192,
OEM_4 = 219,
OEM_5 = 220,
OEM_6 = 221,
OEM_7 = 222,
OEM_8 = 223,
OEM_102 = 226,
PROCESSKEY = 229,
PACKET = 231,
ATTN = 246,
CRSEL = 247,
EXSEL = 248,
EREOF = 249,
PLAY = 250,
ZOOM = 251,
NONAME = 252,
PA1 = 253,
OEM_CLEAR = 254
1 Like

ah ok, so any codes on the list you just posted should work then :slight_smile:

We also have support for extended keys like volume up / down etc… but I’m not sure if it work fine for everyone.

PS: Don’t use 95 :wink:

2 Likes

Do these literally simulate keyboard entry? Like a MSR or RFID?

Seems like it does. Volume up / down worked for me.

Any way this could be adopted into an action?

Think hes adding an extra parameter to the set number pad value action

1 Like

Sorry, missed that.
But as it imitates real keyboard stroke it should work anywhere in samba shouldnt it…?

Hi @emre

just tested my enter button using the new keycode setting you added to the set numberpad value action and it works PERFECT!!

Thanks again :slight_smile:

1 Like