Parameters
- macros
Type: System.String
The macros as a string in the following format: {-MacrosType-|-param1-|-param2-| - ... -}
Return Value
Type: System.String
The result of the macros. If the value is empty string then an error at runtime.
Full description of macros can be found here: Macros.
The following code example demonstrates uses of the RiseMacros method.
| C# | Copy Code |
|---|---|
public static int Execute(Instance instance) { instance.ClearCookie(); Tab tab = instance.ActiveTab; 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-|-eng-|-male-}"); he.SetValue(result, true); return 0; } | |
| PHP | Copy Code |
|---|---|
public static function Execute($instance) { $instance->ClearCookie(); $tab = $instance->ActiveTab; 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-|-eng-|-male-}"); $he->SetValue($result, true); return 0; } | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family