How Will I to Emulate Control A then Delete Key

vulkan

Client
Регистрация
14.03.2013
Сообщения
12
Благодарностей
0
Баллы
1
How Will I Emulate Control-A Keystroke

Hi Just wondering how will I emulate a Control-A keystroke in Code Creator or in ProjectMaker.

Thanks
 

zeus

Client
Регистрация
03.07.2012
Сообщения
99
Благодарностей
21
Баллы
18
try this in c# code module:

System.Windows.Forms.SendKeys.Send("{CTRL}");
System.Windows.Forms.SendKeys.Send("A");


{you may need to add GAC Referece).
This hasnt been tested. But it might work.

also,be sure to keep the focus on the element before running the c# code.

EDIT : This does not work. working on another alternate.
 

vulkan

Client
Регистрация
14.03.2013
Сообщения
12
Благодарностей
0
Баллы
1
Thanks for the info that this initial suggestion didn't work.

Hope somebody knows how to execute this Control-A (Select All) keystroke.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 775
Благодарностей
1 185
Баллы
113
JavaScript:
instance.ActiveTab.Navigate("google.com","");
if(instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
lock(SyncObjects.InputSyncer)
{
    Emulator.ActiveWindow(instance.FormTitle);
    SendKeys.SendWait("^a");
}
Cheers
 
  • Спасибо
Реакции: zeus

vulkan

Client
Регистрация
14.03.2013
Сообщения
12
Благодарностей
0
Баллы
1
JavaScript:
instance.ActiveTab.Navigate("google.com","");
if(instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
lock(SyncObjects.InputSyncer)
{
    Emulator.ActiveWindow(instance.FormTitle);
    SendKeys.SendWait("^a");
}
Cheers
Thanks lokiys.

I was able to run it using ProjectMaker but How will I execute this using Code Creator?

Thus Anybody know how to implement it using Code Creator?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 775
Благодарностей
1 185
Баллы
113

vulkan

Client
Регистрация
14.03.2013
Сообщения
12
Благодарностей
0
Баллы
1
Thanks lokiys, but still if somebody knows how to implement this or just have a rough idea on how to implement this emulation in code creator would be a great help!
 

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