Page 1 of 1

What is the difference between " " and {SPACE}

Posted: Tue Apr 13, 2010 10:19 am
by Niels Seidler
I want to maximize a window and found that the sequence: {Alt DOWN} {XKey}{Alt UP} opens the correct menu but the "X" key does not maximize the window.

This sequence does the trick: {Alt DOWN}{Space}{XKey}{Alt UP}

My questions then are:
1. Why does the first sequence not work?
2. When to use " " and when to use {SPACE}?

Re: What is the difference between " " and {SPACE}

Posted: Tue Apr 13, 2010 1:09 pm
by Support Team
The difference is that "{Key}" (e.g. "{Space}") does not change the state of modifier keys like Alt, Ctrl, or Shift, whereas " ", "A", or "@" change the modifiers state in order to really type that letter.
In other words: "A" will create an upper-case "A", no matter if you wrap it inside a "{Shift Down}{Shift Up}" or not. "{Akey}" will instead create a lower-case "a" if shift is not pressed and an upper-case "A" if you wrap it inside "{Shift Down}{Shift Up}" or have CapsLock on.

Regards,
Alex
Ranorex Support Team