How....?? showmessagebox %msg%

JW

Is there a way to do this with android devices?

It used to work with windows mobile.

; Description: Show message to device user
set msg="good to go"
showmessagebox %msg%

I get a messagebox open on the device that just shows
 
  %msg%
 
 
 
3 years ago
Android Scripting
ANSWERS
RC
Raymond Chan Diamond Contributor
3 years ago

What are the version and build numbers of the Android device agent you are using?

Is it a legacy OEM specifc  Android+  or a generic Android-Enterrprise device agent?

The support of macro in Android legacy script is not exactly the same as for Windows/Windows-Mobile.  The latter  more or less strictly follows the command shell script syntax defined by Microsoft many years ago,  Android device agent, on the other hand, has much more restrictions, at least for the old versions I tested more than six years ago.  More recent versions likely support less rather than more of these legacy features related to macros.

I need to know your device agent type/version, and repeat some tests to confirm the latest feature supported. 

EG
Edgar Gomez
3 years ago

Hi James,

You can do it sending the following Javascript  script :

var msg = "good to go";
mobicontrol.message.createInfoDialog(msg).show();
 
In the following link you can find more about Javascript scripting:
 
https://www.soti.net/mc/help/javascriptapi/en/index.html
JW
James Wisecup
3 years ago

I had no idea all this javascripting was avail.  Thanks for sharing.

Q: Are these avail to native android apps dev?

RS
Rafael Schäfer
3 years ago

Or just send legacy script:

showmessagebox "Your message."

RC
Raymond Chan Diamond Contributor
3 years ago

The standard language features of Javascript is definitely much more complete than those offered by MobiControl legacy script, which is a subset of Microsoft Windows/DOS command shell script.    However, there are currently some functions available in legacy script but not supported by the latest javascript libraries YET.  But more and more features and libraries are being added to the javascript script engine ever since its introduction some two years ago.

The latest library details can be found online at https://www.soti.net/mc/help/javascriptapi/en/index.html

T
THMOD@SOTI
3 years ago

Hi James,
 
Thank you for posting on SOTI Central and thanks Raymond, Edgar and Rafael for responding to the post.

I believe they have provided very rich information and some solutions for now.

Just jumping in to see what else we can help.

May I understand your use case? What are the version of your MobiControl and device agent?

Kind regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |