Keyboard execute code Unicenta opos

Asked by Jimmy

Hi, I am using a Point of Sale software called Unicenta POS
I can create a button in the POS to execute the oncoard keyboard via a script since the POS is in full screen.

The windows On Screen Keyboard script would be :
echo Starting Keyboard...
"C:/WINDOWS/system32/osk.exe"

How would I do the same for Linux

Closing the keyboard is easy, just click "X"

Much appreciated !

Jimmy

Question information

Language:
English Edit question
Status:
Solved
For:
Onboard Edit question
Assignee:
No assignee Edit question
Solved by:
Francesco Fumanti
Solved:
Last query:
Last reply:
Revision history for this message
Francesco Fumanti (frafu) said :
#1

Hi,

Thanks for your interest in Onboard.

You could for example create a file called "start-onboard.sh" with the following content:

========== Start content =================
#!/bin/bash

exec onboard
========== Stop content =================

You also have to mark the start-onboard.sh file as executable. You can for example type in a terminal:

"sudo chmod a+x /folder/path/start-onboard.sh"

If it does not work, try replacing "exec onboard" with "exec /usr/bin/onboard".

Onboard being a python application, there are probably also better ways to start it from a script.

Cheers

Revision history for this message
Best Francesco Fumanti (frafu) said :
#2

Hi,

Thanks for your interest in Onboard.

You could for example create a file called "start-onboard.sh" with the following content:

========== Start content =================
#!/bin/bash

exec onboard
========== Stop content =================

You also have to mark the start-onboard.sh file as executable. You can for example type in a terminal:

"sudo chmod a+x /folder/path/start-onboard.sh"

If it does not work, try replacing "exec onboard" with "exec /usr/bin/onboard".

Onboard being a python application, there are probably also better ways to start it from a script.

Cheers

Revision history for this message
Jimmy (jrengigas) said :
#3

Thank you so much Francesco. I changed the title a little in case someone searches the same info.

Working results:

install Onboard keyboard via your linux distro

Create file Keyboard.sh and make executable
========== Start content =================
#!/bin/bash
exec onboard
========== Stop content =================

Create in Resources > Script.Keyboard
int n = javax.swing.JOptionPane.showConfirmDialog(
null,
"Keyboard Ready To Load.",
JOptionPane.OK_CANCEL_OPTION);

if (n == 0) {
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("/home/pos/unicentaopos-3.80/extrascripts/keyboard.sh");
}else{
return;
}

Note: Change above path to where you create and folder for keyboard.sh

Jimmy

Revision history for this message
Jimmy (jrengigas) said :
#4

Thanks Francesco Fumanti, that solved my question.

Revision history for this message
Francesco Fumanti (frafu) said :
#5

You're welcome.