Send a key via intent

Hi,

is it possible to send a script that uses intent to send a specific key?

For example, the Android intent for "#" character is intent.KEYCODE_POUND

which is the script syntax to use to obtain the same behavior as a physical key pressure?

a year ago
SOTI MobiControl
ANSWERS
RK
Radim Kadlec
a year ago

What about to use Soti script (javascript)?

mobicontrol.device.injectKey(18);

Hi Radim,

Script command is not supported by device (mobicontrol.device.injectkey(18))

RK
Radim Kadlec
a year ago

Ensure that your MC agent is v15+. If not, upgrade it.

Sure, it is 15.6

C
CKMOD@SOTI
a year ago

Hi Nicolo,
 
Thanks for posting on SOTI Pulse, Thanks Radim
for responding to the post, your expertise and willingness to help are greatly appreciated!

To better assist you, could you please provide more information on the following:

Could you please provide the specific make and model of the device you are using?

Could you describe the exact use case where you want to simulate the key press?

Hi, the real use case is on Zebra WT6300 and we need to simulate the key "#" in order to pop-up the Velocity About menu.

C
CKMOD@SOTI
a year ago

Hi Nicolo,

Thanks for posting on SOTI Pulse.

I would request that you please open a support ticket with the SOTI technical team for more assistance with this issue.

If you have any additional questions or concerns, please don’t hesitate to reach out. We’re dedicated to providing assistance and support.