Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 2 of 2 |
|
|||||
|
I wrote a VBScript to simulate the key press and ran it with a batch file with system(). It works to send ESC to quit out the game but won't work with ReShade. ccbEmulateKey() doesn't work either. I also tried a python library called pyKey and that didn't do it. |
||||
|
well there is more simpler way if you ask me, but I always prevent myself from suggesting third party tools, Autohotkey will definately work and you will get pre created scripts online for the same, you can then simply run .ahk with the help of system() command. I do use the same approach to send key events when I created dark mode test theme for CC years ago. So I know that it will definately work and is pretty easy to do so, but I will still won't recommend this way, as many end user don't want that some third party apps runs on their computer that can send input command. A native way to do that would be much better. but as you guys are already using re-shade, so you can try Autohotkey to send the key events too. hope this helps. |
||||
|
Thanks everyone, that's perfect! Sorry about the confusion I caused. Pretty sure I'll be able to get it to work with those commands. Nice one. |
||||
|
I can get it to work with system() but I think you're right, using 3rd-party key-input to trigger another 3rd-party injected process would look a bit suspicious. As a workaround,I think I'll just create 2 different ccb scenes and inject a single reshade process into only one of the scenes. Then I can use coppercube actions to switch between the ccb files, and reshade should (hopefully) automatically enable/disable the visual shaders. This will avoid having to fake the key-inputs. This will be my first project to be uploaded to Steam - so I'll create an installer to compile everything as a seamless, single package for the end-user. *I'll be adding the Coppercube logo to the game boot-screen. Thanks again everyone. |
||||
|
Once ReShade is injected even switching scenes or ccb files won't turn it off. At least that is what I found out by experimenting yesterday. I did a lot of tests and I am the point where I think it would easier to just translate the shader you want to work with CC. |
||||
|
Ah, thanks for that Guest, I really appreciate all your testing for this. That's frustrating - makes sense though; I guess it's a no-go for now then. What I'll probably end up doing instead is just using a basic animated overlay, to try and get a similar visual effect. Thank you. |
||||
|
The bes, I think you can do is create 2 version of your game, one with reshade and one without reshade, and create a launcher for your game, that will ask the user to play the game with the reshade on or with reshade off, if user opt for with reshader then run the instance of the game which has reshade applied, if he select the other then run the game that no effects applied. Also if you are talking about the flashlight effect, then you can use my custom light shader, it won't affect the performance I believe but yeah, it will not work with CC based lightmapped textures unfortunately. But I beleive there are other ways to turn off and on reshade shaders "autohotkey" is a very powerful tool, if you know how to use it. |
[ 1 2 ] Page 2 of 2 |
|