How to write command for "Alt + Space +x" to expand window

Asked by Eric Yu

I want to expand IE and firefox browser window for my testing. I find shortcut "Win + UP" doesn't work on Windows Server 2008. Instead, I should use "Alt + Space +X". But, I don't know how to write type command for it in sikuli IDE.

Could you please help?

Thanks,
Eric

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Eric Yu
Solved:
Last query:
Last reply:
Revision history for this message
rob (reg82) said :
#1

type('x' + Key.SPACE, KeyModifier.ALT)

Revision history for this message
Eric Yu (bysyue) said :
#2

Hi, Robert

Thanks for your answer. I tried it but it didn't work. But, your answer enlightened me. I found the menu shown on browser is the result of command "Alt + Space" and was waiting for user to input "x". So, I updated the command like below:

+++++++++++++++++++++++++++++++
type(Key.SPACE, KeyModifier.ALT)
type('x')
++++++++++++++++++++++++++++++

In this way, it works very well.

Thanks,
Eric