OK, so here is how you do it:
- You load up ShaderGlass and import one of Duimon’s Shader presets.
- You configure everything in ShaderGlass just like you want it.
- When you are happy with your results, you save a ShaderGlass profile.
- create an AHK script, e.g.
Run, “C:\Program Files (x86)\Steam\steamapps\common\ShaderGlass\ShaderGlass.exe” -f “M:\TestProfile.sgp”
that’s basically it.
Now I tested this with Xemu Emulator and there was indeed a bit of a complication, because if you run Xemu in Fullscreen then it always puts itself above ShaderGlass. I wasn’t able to make it go behind ShaderGlass. This means that I had to run Xemu in windowed mode, but that results in the task bar still showing, because Xemu does not have a “borderless” mode.
I fixed this by downloading another program off Steam called “BorderlessGaming”, which does some magic to make programs run in borderless mode even if they don’t support it.
So that means:
-
Add Xemu to the list in BorderlessGaming, so that borderless mode is applied automatically.
-
Change your AHK script. My final script (which I have written with the help of ChatGPT) looks like this (it both runs and closes ShaderGlass and BorderlesGaming with Xemu):
; Launch supporting tools Run, “C:\Program Files (x86)\Steam\steamapps\common\Borderless Gaming\BorderlessGaming.exe” Sleep, 1000 Run, “C:\Program Files (x86)\Steam\steamapps\common\ShaderGlass\ShaderGlass.exe” -f “M:\TestProfile.sgp”
;
Wait until Xemu closes, then clean up Process, WaitClose, xemu.exe
; Now close ShaderGlass and Borderless Gaming Process, Close, ShaderGlass.exe Process, Close, BorderlessGaming.exe ExitApp
; Optional: Manual kill of Xemu with Escape key $Esc:: { Process, Close, xemu.exe }