Show/Hide Toolbars

Inventu Viewer+ Server Macros

The MacroParms parms property is a special property implemented as part of the internal "behind the scenes" functioning of the ClientParms Client Interaction Method.

 

If you set a new MacroParm object equal to the this.parms property prior to calling ClientParms, you can use the version of ClientParms that skips any reference to a MacroParms class.

 

In any case, following a call to ClientParms, any values provided by the client will reside in the parms property, as the ClientParms method will copy any provided MacroParms object to the parms property.

 

Example

 

 public override MacroRunResult run()

 {

         this.parms = new MacroParms("Logon Parameters""Please Enter your UserID and Password",

                                 new MacroParm[]

                                 {

                                         new MacroParm("UserID","uid","Simmy","Enter the UserID"),

                                         new MacroParm("Password","pw",null,"Enter the Password-hint: host",FVInpEnum.password)

                                 });

                 

         MacroDialogRC rc = this.ClientParms(MacroButtons.ok | MacroButtons.cancel, MacroMessageType.info);

         if (rc == MacroDialogRC.ok)

         {

                 this.oScreen.putCommand(parms["uid"].text+"[enter]", 2000);

                 this.oScreen.putCommand("2[enter]", 2000);

                 this.oScreen.putCommand(parms["uid"].text+"[tab]"+parms["pw"].text+"[enter]", 2000);

                 if (oScreen.getText(1,1,3)=="DFH")

                 {

                         this.oScreen.putCommand("[clear]", 1000);

                         this.oScreen.putCommand("info[enter]");

                 }

         }

         return MacroRunResult.ok;

 }