| C# | |
|---|---|
public string RiseMacros( string macrosType, string[] parameters ) | |
Parameters
- macrosType
Type: System.String
The type of macros.
- parameters
Type: System.String[]
An array of parameters for macros.
Return Value
Type: System.String
The result of the macros. If the value is empty string then an error at runtime.
The following code example demonstrates uses of the RiseMacros method.
| C# | Copy Code |
|---|---|
public static int Execute(Instance instance) { instance.ClearCookie(); Tab tab = instance.MainTab; if ((tab.IsVoid) || (tab.IsNull)) return -1; if (tab.IsBusy) tab.WaitDownloading(); tab.Navigate("lessons.zennolab.com"); if (tab.IsBusy) tab.WaitDownloading(); HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByName("text"); string result = instance.RiseMacros("Person.FirstName", new [] { "eng", "male" }); he.SetValue(result, true); return 0; } | |
| PHP | Copy Code |
|---|---|
public static function Execute($instance) { $instance->ClearCookie(); $tab = $instance->MainTab; if (($tab->IsVoid) || ($tab->IsNull)) return -1; if ($tab->IsBusy) $tab->WaitDownloading(); $tab->Navigate("lessons.zennolab.com"); if ($tab->IsBusy) $tab->WaitDownloading(); $he = $instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByName("text"); $result = $instance->RiseMacros("Person.FirstName", array("eng", "male")); $he->SetValue($result, true); return 0; } | |
Full description of macros can be found here: Macros.
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family