Page 1 of 1

SendKeys modification

Posted: Tue Mar 17, 2015 1:35 pm
by Sem;colon
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)
eg.zip
(4.59 KiB) Downloaded 219 times
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.
plugins.zip
(3.09 KiB) Downloaded 198 times
(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.

Re: SendKeys modification

Posted: Tue Mar 24, 2015 5:25 pm
by zian
Nice