My approach to solving this has been two headed, but both attempted paths have thus far failed. Option one:
I can open the program with a script:
Code: Select all
wine '/home/mint/.wine/drive_c/Program Files (x86)/MediaMonkey/MediaMonkey.exe
Code: Select all
wine ~/.foobar2000/foobar2000.exe /playpause
Option 2:
Using a send keys program with a script. And assigning the relevant hot key within mediamonkey. This fails because, I think, MediaMonkey will not accept send keys if the program is not focused.
I can probably do it with a script to give it focus, send the key then put the focus back where it came from. But that will make the screen flicker if I'm also in game or whatever.
Is there an option to enable mediamonkey to accept sendkey events when not focused? More on that here.
Any help with the above, or other methods to get it it to work in linux much appreciated.
I'm in Mint Victoria Cinnamon if that matters.