vsajip / pywinauto

Automatically exported from code.google.com/p/pywinauto
Other
3 stars 6 forks source link

It's impossible to type a closing curly brace #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

TypeKeys('{}}'). According to the documentation of SendKeys, this should type a 
closing curly brace '}'. However, SendKeys doesn't recognize that the closing 
curly brace in the middle of '{}}' is escaped and raises "RuntimeError: Unknown 
code:". 

What is the expected output? What do you see instead?

The expected output is that the HwndWrapper on which TypeKeys is called 
receives the key combination for a curly brace. Instead, a RuntimeError is 
raised by SendKeysCtypes. 

What version of the product are you using? On what operating system?

pywinauto-0.4.0, Python 2.7.3 on Windows 7 32 bit. 

Please provide any additional information below.

The bug is easy to spot in SendKeysCtypes.py. I can provide a patch if needed. 

Original issue reported on code.google.com by mherrman...@gmail.com on 24 Jul 2012 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by michael....@open-closure.com on 1 Mar 2013 at 11:02