SendKeys modification
Posted: Tue Mar 17, 2015 1:35 pm
Hello,
I made a little modification to eg/WinApi/SendKeys.py.
I changed the following:
- Improved Error handling (previously it was possible that it crashes if a Key could not be parsed correctly)
- Added the parameter "mode" which specifies if the button(s) should be pressed, released or both (Default) Would be nice to have this in the next EG release!
I also modified plugins/Window/SendKeys.py in order to configure the new parameter. (I'm not sure if this modification should be in the default in this way, the new setting could be confusing)
Why did I do this modification?
Sometimes it's necessary to keep one button pressed while repetitively pressing another one.
I made a little modification to eg/WinApi/SendKeys.py.
I changed the following:
- Improved Error handling (previously it was possible that it crashes if a Key could not be parsed correctly)
- Added the parameter "mode" which specifies if the button(s) should be pressed, released or both (Default) Would be nice to have this in the next EG release!
I also modified plugins/Window/SendKeys.py in order to configure the new parameter. (I'm not sure if this modification should be in the default in this way, the new setting could be confusing)
Why did I do this modification?
Sometimes it's necessary to keep one button pressed while repetitively pressing another one.