The Python script I wrote to interact with software sends a software keyboard keypress signal. Most packages respond to this. I am having trouble with Sensory Software's Grid 3 package. This softwrae only responds to a software keystroke when the window running the software does not have focus! So if I click on the Grid 3 window, it will not register the software keystrokes transmitted by my script. If I click outside of the window, so that the Grid 3 software no longer has the 'focus', then it does respond to the keystrokes.
Grid 2 would not respond to software keystrokes at all. I had some correspondence with the software developer over this a few years ago. He sent me some sample c# code to interact with the package, but I never got this to work. Which is totally a comment on my lack of coding ability and experience.
That was the reason I set up the Leostick to spoof a physical keyboard key press. The Leostick is a miniature Leonardo board. It shares the ability to appear like a physical keyboard to the Windows operating system.
So, I could set up my script to recognise when the Grid 3 software is in use and focus on e.g. a menu bar or something where the software keystrokes will not activate anything. This is all a bit kludgey. Or I could resurrect using the Leostick. With a Leostick plugged in, there will always be a response from whatever you are trying to control as the Leostick is a real keyboard as far as Windows is concerned.
I listen to the Gnu World Order podcast. The presenter, Klaatu, mentions in one episode that your open source software can only ever be as robust as the weakest closed source element it relies on.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.