You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't run a .bat file that interacts with DisplaySwitch.exe #109
@echo off
start "" "%windir%\System32\DisplaySwitch.exe" /external
This .bat works when I run it myself (switches to 1 monitor). However, when I run it through IFTTT/ACC it gives me an error in the run box that Windows cannot find displayswitcher.exe.
Hardware & software info (please complete the following information):
Most likely your app is 32-bit, and in 64-bit Windows references to C:\Windows\System32 get transparently redirected to C:\Windows\SysWOW64 for 32-bit apps. calc.exe happens to exist in both places, while soundrecorder.exe exists in the true System32 only.
And DisplaySwitch.exe doesn't exist in the 64 bit space, I've also confirmed this in the code. Working on seeing if there's some way to fix it.
Issue seemingly fixed by disabling the "Prefer 32 bit" option in visual studios. I also added the action display_switch so a custom batch file isn't needed, but it's native :) More info on that coming soon.
(The following parameters can be used; nothing to just show the display switcher, so you can click yourself, or "external", "internal", "extend", "clone" to automatically trigger the given mode)
Activity
SullieLore commentedon Aug 5, 2021
[-]Can[/-][+]Can't run a .bat file that interacts with DisplaySwitch.exe[/+]AlbertMN commentedon Oct 9, 2021
Will look at this tomorrow :)
AlbertMN commentedon Oct 10, 2021
Getting same issue, only for exe seemingly. not txt or anything.
Sorry for the super late reply. Doing further testing.
AlbertMN commentedon Oct 10, 2021
Ok, so the issue seems to be 32 vs 64 bit, as explained here; https://stackoverflow.com/a/38678712/4880538
And
DisplaySwitch.exedoesn't exist in the 64 bit space, I've also confirmed this in the code. Working on seeing if there's some way to fix it.Added "display_switch" action + no prefer 32 bit
AlbertMN commentedon Oct 10, 2021
Issue seemingly fixed by disabling the "Prefer 32 bit" option in visual studios. I also added the action
display_switchso a custom batch file isn't needed, but it's native :) More info on that coming soon.(The following parameters can be used; nothing to just show the display switcher, so you can click yourself, or
"external", "internal", "extend", "clone"to automatically trigger the given mode)AlbertMN commentedon Oct 10, 2021
@SullieLore test version with the proposed fix here; #115
SullieLore commentedon Oct 11, 2021
Thanks for working on this! Great to hear the command is native now, as that is a better solution than messing with workarounds.