nested macros with Emulation

Umibozu

Client
Регистрация
13.07.2011
Сообщения
18
Благодарностей
2
Баллы
0
Hi,

I can't figure out how to emulate this kind of "double" macros:
// Executing macros
//he.SetValue(instance.RiseMacros("Person.LastName", new [] { "eng", "male", "", "Person.FirstName", "eng", "male" }), true);


Tried the following and more but I get nothing out of it:

he.Focus();
var first = instance.RiseMacros("Person.FirstName", new [] { "eng", "male" });
var firstlast = instance.RiseMacros("Person.LastName", new [] {first + "eng", "male"});
Emulator.SendString(instance.MainTab.Handle, firstlast, 100,200);

Anyone?
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
Hi,

I can't figure out how to emulate this kind of "double" macros:
// Executing macros
//he.SetValue(instance.RiseMacros("Person.LastName", new [] { "eng", "male", "", "Person.FirstName", "eng", "male" }), true);


Tried the following and more but I get nothing out of it:

he.Focus();
var first = instance.RiseMacros("Person.FirstName", new [] { "eng", "male" });
var firstlast = instance.RiseMacros("Person.LastName", new [] {first + "eng", "male"});
Emulator.SendString(instance.MainTab.Handle, firstlast, 100,200);

Anyone?
Why? :confused:
This parameter "eng" - language (can be "rus" - Russian or "eng" - English)
If you want to join the two results of macros you need the follow code:
JavaScript:
he.Focus();
var first = instance.RiseMacros("Person.FirstName", new [] { "eng", "male" });
var last = instance.RiseMacros("Person.LastName", new [] { "eng", "male"});
var firstlast = first + last; // or var firstlast = String.Format("{0}{1}", first, last);
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)