‎08-04-2020 08:13 AM
Hello,
Mega/Hopex provides MessageBox as an alternative to the 'standard' msgbox of Visual Basic Script. Msgbox cannot be used in the web client so you should use Messagebox provided by Mega.
Same problem for inputbox. Is there also an alternative available? If so, can someone point me towards the documentation? I don't seem to be able to locate it 😉
tnx !
Solved! Go to Solution.
‎22-04-2020 02:30 PM
‎22-04-2020 11:15 AM - edited ‎22-04-2020 11:16 AM
Hi,
here is an example of code you could use :
Set oRoot = <needs to be defined depending on your context>
Set myInputBox = oRoot.CallMethod("~AfLYxbu47b00[WizardRun]", "~SJ8DanasDr1C[InputBoxWizard]")
myInputBox.Manager.Property("~aZJEQVaNJb86[InputBox.Type]") = "X"
myInputBox.Manager.Property("~xG8Df1bsD9NC[InputBoxWizard.Caption]") = "Windows Title"
myInputBox.Manager.Property("~XJ8Dl0bsD9LC[InputBoxWizard.DisplayText]") = "Text Displayed"
myInputBox.Run
myString = myInputBox.Manager.Property("~fH8DvrasDH9C[InputBoxWizard.InputText]")
Regards
Lionel