- Регистрация
- 09.02.2011
- Сообщения
- 1 216
- Благодарностей
- 683
- Баллы
- 113
Alright all you programming wizards out there (Shade) maybe you can help this newbie to C how to do this. As we know, dynamically created document addresses are a pain in the ass. Combine that with a site that has to use emulations to fill in text before a button is available and we have the ultimate monster for making a template.
Here's the dilemma. How do you use a counter in CC as a variable to input into a document address?
Without having to copy and paste each line with a different document address, is there a way to create a variable that is input into the document address and if so, how would you go about looping it back up if it returns -1 to add another number to the counter and try it. I've been looking at HeadFirst's tutorials on C# and can't seem to wrap my head around it. Do you use a 'while' loop or if;else.
Help me out here please.
Here's the dilemma. How do you use a counter in CC as a variable to input into a document address?
Код:
// Setting value [this is cr...] to the element with tag [textarea]
he = instance.GetTabByAddress("page").GetDocumentByAddress("0;_13").FindElementByTag("form", 0).FindChildByName("text_text");
if (he.IsVoid) {
he = instance.GetTabByAddress("page").GetDocumentByAddress("0;_13").FindElementByTag("form", 0).FindChildByAttribute("textarea", "fulltag", "textarea", "text", 0);
}
if (he.IsVoid) return -1;
Help me out here please.