Question

Moving to the next object after pressing ENTER key in Windows Form [Openspan/Robotic Automation]

Hi,

Is there anyway to move objects by pressing ENTER key like Tab key?

There are multiple textboxes in a Windows form in my project, and I would like to move input area by pressing ENTER key.

I would appreciate it if you can give me some idea on this.

Thank you.

***Moderator Edit-Vidyaranjan: Updated Platform Capability***

Comments

Keep up to date on this post and subscribe to comments

August 14, 2019 - 4:25pm

Hi,
In Pega Robotics we have a concept called send keys. Where you can pass the required keyboard key to a particular control.

http://help.openspan.com/52/Adapters_Interrogation/SendKeys_Method.htm

August 16, 2019 - 2:45am
Response to chakri5122

Hi,

 

Thank you for your replay.

It's not WebAdaptor what I need to control. It is Windows form.

"Key Press" method clould resolve the issue but it does not cover ENTER key but shift and alt keys only...

 

Is there any way to focus controls by pressing ENTER key?

 

Thanks.

 

August 16, 2019 - 8:17am
Response to KosukeT0

Hi,

Send keys is used only for windows forms.

If key press solves your issue you can use the method raise event, where you can make use of  onkeypress event.

Pega
August 21, 2019 - 11:32am

You can use send keys and provide one of the below keys for your purpose.  ClickByOcr methods can work too!

BACKSPACE	{BACKSPACE}, {BS}, or {BKSP}
BREAK	{BREAK}
CAPS LOCK	{CAPSLOCK}
DEL or DELETE	{DELETE} or {DEL}
DOWN ARROW	{DOWN}
END	{END}
ENTER	{ENTER}or ~
ESC	{ESC}
HELP	{HELP}
HOME	{HOME}
INS or INSERT	{INSERT} or {INS}
LEFT ARROW	{LEFT}
NUM LOCK	{NUMLOCK}
PAGE DOWN	{PGDN}
PAGE UP	{PGUP}
PRINT SCREEN	{PRTSC}
RIGHT ARROW	{RIGHT}
SCROLL LOCK	{SCROLLLOCK}
TAB	{TAB}
UP ARROW	{UP}
F1	{F1}
F2	{F2}
F3	{F3}
F4	{F4}
F5	{F5}
F6	{F6}
F7	{F7}
F8	{F8}
F9	{F9}
F10	{F10}
F11	{F11}
F12	{F12}
F13	{F13}
F14	{F14}
F15	{F15}
F16	{F16}
	
To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes:

Key	Code
SHIFT	+
CTRL 	^
ALT	%