Problems with Key.HOME

Asked by Matthias Neudecker

I have a script running on a two-monitor environment that does not execute the command type(Key.HOME).

I first set the focus to the window by clicking an element in the status bar of IE and then want the page to jump to the top.
Other commands like clicking elements in the window work just fine.

Any ideas why this is happening?

Thanks,
Matthias

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

It might be, that you first have to give focus to the content part of the window (e.g. clicking the webpage) first, to fire the Key.Home there.

Revision history for this message
Matthias Neudecker (matthias-neudecker) said :
#2

Great, that did it!

Revision history for this message
Matthias Neudecker (matthias-neudecker) said :
#3

Thanks a lot Raiman!