Long story short, I'm trying to access a special window in Synthesia which is only displayed if you execute the application using Shift+Click. The problem is that I can't figure out how to reproduce this on Linux, while running the app under wine. I thought it may be a command line thing, but I couldn't find a command which does it either.

That leaves me with this, is it even possible? If so, how?

  • Try to disable compiz: In System > Preferences > Appearance, select None in the visual effects tab. – harrymc Jan 2 '19 at 8:55
  • Done, I don't see how this helps though. – Frontear Jan 2 '19 at 16:41
  • Explorer doesn't give Shift any special treatment while executing a file. It simply runs the executable as a command, otherwise how consoles and other applications can execute it? The application can't know whether you've pressed the Shift key or not. It can only do that after it has started – phuclv Jan 6 '19 at 8:56
  • Exactly that, so there must be some way to emulate that on Wine, no? A simple Shift+Click on any DE doesn't work out here. – Frontear Jan 6 '19 at 15:20
  • As @phuclv says, the Shift key isn't special to how the application is started, but is special to the application once it has started... i.e: part of the application's startup code will look at the state of the Shift key. – Attie Jan 8 '19 at 16:45

This program uses GetKeyState API to detect shift key as follows:

.text:0040D575                 call    ds:GetKeyState
.text:0040D57B                 mov     ecx, 8000h
.text:0040D580                 test    cx, ax
.text:0040D583                 jnz     loc_40E21F   ; jumps to special config dialog show
  1. Generate bash script in Synthesia directory with favorite name (mine: runme) and fill with following lines:

    wine Synthesia.exe
  2. Change its attribute to runable with chmod +x rumne and ensure you can click and run instantly bash scripts. I mean run bash scripts without asking dialog! use this answer

  3. HOLD Shift KEY and click/double click to run runme. the programs runs normaly! now close it but DO NOT RELASE Shift KEY. Do again and click/double click to run runme to show special config dialog.

    show me!

| improve this answer | |
  • Instead of #2, couldn't you press and hold shift when clicking the "Run" button? – Attie Jan 8 '19 at 16:43
  • Bonus points for a wrapper script that does a binary patch and accepts a flag to show the normal / config window. – Attie Jan 8 '19 at 16:47
  • I tested clicking run button in ask dialog while holding shift but did not work! I can do binary patch but question was how to send startup key stroke in wine not how to run this app in config mode. if you need let me know. – arman Jan 8 '19 at 17:06
  • It doesn't seem to let me run the script while holding down shift. I'm running KDE. – Frontear Jan 9 '19 at 0:48
  • 1
    I've found a different way to run it, I simply called Explorer.exe under wine, then shift + click from there. – Frontear Jan 9 '19 at 1:22

Another method that can be followed is to run Explorer.exe under wine, then perform the Shift+Click operation. Unlike the above method, it does not rely on a specific setting to be changed or a script

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.