Android "showmessagebox" with two decisions

Android "showmessagebox" with two decisions

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

5 Answers

Order By:   Standard | Newest | Votes
DDMOD@SOTI | posted this 26 June 2020

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,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
Matt Dermody | posted this 26 June 2020

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

  • 0
  • 0
DDMOD@SOTI | posted this 15 July 2020

Hi MD,

 

Can you please share the version of the MobiControl you are in? If you are on the latest versions, then we can get this done by deploying the scripts through Javascript. Please confirm.

https://www.soti.net/mc/help/v15.1/en/console/other/androidplus_javascript.html?

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
MD | posted this 16 July 2020

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

 

 

  • 0
  • 0
DDMOD@SOTI | posted this 30 July 2020

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,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback