Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

SendKeys modification

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

SendKeys modification

Post 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.
If you like my work, Image me a drink :wink:
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: SendKeys modification

Post by zian »

Nice
eventghost.net
Be there or be square.
Post Reply