Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
kev1n123 Frequent Contributor.
Frequent Contributor.
449 views

how to press the down arrow on the keyboard with leanft?

how to press it with leanft?

key.png

thanks

Labels (3)
0 Likes
2 Replies
kev1n123 Frequent Contributor.
Frequent Contributor.

Re: how to press the down arrow on the keyboard with leanft?

im getting there error:

Dim cannot be resolved to a type

set cannot be resolved to a type

Duplicate local variable objWScript

The method CreateObject(String) is undefined for the type main

im using java if that matters

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: how to press the down arrow on the keyboard with leanft?

Hi,

You can read about LeanFT support for device level operations (keyboard and mouse simulation) here:

https://admhelp.microfocus.com/leanft/en/14.51/HelpCenter/Content/HowTo/mouse&keyboard.htm

 

Please note that this functionality is currently limited to Windows OS only.

To press the keyboard down key, you can use something like the following (assuming Java code):

Keyboard.pressKey(Keyboard.Keys.DOWN);

You also have the keyDown and keyUp methods if you need them.

 

Regards,

Anton

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.