keystroke emulation SHIFT + ESC

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
How do I emulate a keyword combination SHIFT +ESC?

thanks.
 

nitin2003

Client
Регистрация
18.09.2012
Сообщения
195
Благодарностей
11
Баллы
18
I would also like to know this.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
try System.Windows.Forms.SendWait(@"+{ESC}");
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
Can you please elaborate how to use this code. I never used C# before
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
I am getting this error when I try this code

"The type or namespace name 'SendWait' does not exist in the namespace 'System.Windows.Forms' (are you missing an assembly reference?)" в строке "System.Windows.Forms.SendWait
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
HB just forgot something in the code above. It should be...

System.Windows.Forms.SendKeys.SendWait(@"+{ESC}");
 

surfmore

Client
Регистрация
08.09.2011
Сообщения
138
Благодарностей
7
Баллы
18
I put this code on the C# code box and tried to run the template, but now it says

Action not executed

No explanation given...
 

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