Android "showmessagebox" with two decisions

M
MD
MAN Truck & Bus SE

Hello,

i have tried to send a message to my android devices, in order to let the user make a decision:

showmessagebox "Is this okay for you?" NO_TIMER 2 NO
if %ShowMessageBoxReturn% == IDYES goto "SCRIPT "else goto EXIT

I want to start a script, if the user clicks YES - if the user clicks NO it should go to EXIT.

Is this possible?

Thanks

Edited 5 years ago
Android Scripting
ANSWERS
D
DDMOD@SOTI
5 years ago

Hi MD,

Thanks for the interesting post!

I can confirm that the showmessagebox script without ELSE command as shown below should work. 

showmessagebox "Is this okay for you?" NO_TIMER 2 NO
if %ShowMessageBoxReturn% == IDYES goto "SCRIPT"

Anyhow, I will test this on my local server and provide an update soon.

Regards,

MD
Matt Dermody Diamond Contributor
5 years ago

As far as I am aware the android scripting doesnt allow for performing different actions based on the response. 

D
DDMOD@SOTI
5 years ago
M
MD
5 years ago

Good morning,

no, we are not on the latest version of mobicontrol because of many bugs in this version, that make the porductive usage for us impossible.

We are on 14.4.9 at the moment, so we cannot use javascript for scripting...

Are there any other ways for us?

Thanks

MD

D
DDMOD@SOTI
5 years ago

Thanks MD for the update.

Unfortunately, the legacy scripts do not have this option to make it to work. Did you find any alternative solution?

Regards,