How can I highlight all text in text field?

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
I was told id have to do a c## thing for that. but i know nothign about that shit.

I was told that this info is on the forum but i search and couldnt find that shit.

I have a text field which i want to first delete the data in the field (email replies)before putting my own text in.

curreently im using millions of {delete} in kb emulation but that is time consuming plus it is not convenient when there may be a large email. i have to make the process longer for everyhting taking many more seconds just for the long emails and multiply up it really grinds the template to a snail pace.

So how to doa simple ctrl + A highlight all command?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Код:
HtmlElement he = instance.ActiveTab.FindElementByAttribute("input:text", "outerhtml", "Subject", "text", 0);
// check the element
lock(SyncObjects.InputSyncer)
{
System.Windows.Forms.SendKeys.SendWait("^a");
}
you will have to replace the element attributes with the ones that match the box you are trying to highlight all the text in.

And here is the forum post that discusses this...

http://zennolab.com/discussion/showthread.php?9511-Как-очистить-форму&p=55058&viewfull=1#post55058
 
  • Спасибо
Реакции: Harambulus

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