- Регистрация
- 09.02.2011
- Сообщения
- 1 216
- Благодарностей
- 683
- Баллы
- 113
Thanks to Shade and Darkdiver I'm finally getting a little better grip on Code Creator. Got the emulations working good now and am able to fix most of the errors that pop up.
What I'm dealing with now is probably simple but everything that I've tried has failed miserably. How do you save the results of Set.Value when filling in an HTML element by using the Random.Macro. I need this for a couple of sites that the only way the register button works is through Emulations.
Here's my string and I need to save the result to a file along with another string; Userass.
I've tried using Get.Value() but I don't know what to put in the parenthesis. I've tried everything and what's online as far as help doesn't help.
What I'm dealing with now is probably simple but everything that I've tried has failed miserably. How do you save the results of Set.Value when filling in an HTML element by using the Random.Macro. I need this for a couple of sites that the only way the register button works is through Emulations.
Here's my string and I need to save the result to a file along with another string; Userass.
Код:
HtmlElement he;
// Setting value [{-Random.T...] to the element with tag [input:text]
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildByName("form::account_id");
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildById("account_id");
}
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 1).FindChildByAttribute("input:text", "fulltag", "input:text", "text", 0);
}
if (he.IsVoid) return -1;
// Executing macros
he.SetValue(instance.RiseMacros("Random.Text", new [] { "10", "cd" }), true);
WHAT GOES HERE NEXT? VARIABLE?