cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MEGA scripting: alternative to InputBox??

jpots
Super Contributor

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 !

2 Replies

jpots
Super Contributor
thank you. Just edited my macro and it works as I hoped it would work...

lionel
MEGA
MEGA

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