Question / Help Any ways to automate source switching/moving?

I'm looking to refine my streaming setup, and as part of that I'm adding an overlay to block in-game chat from being visible on stream. The trouble is that the location of the chat box moves when in-game options or character stats are visible (see this picture for reference; it's usually on the left, but shifts to left of the menu).

As it is, I've created two sources in OBS for the overlay, labeled left and mid. Ideally, I'd like to be able to automate it visually--when this block of pixels turns this particular color, switch from left to mid, and switch back when it's no longer that color. An alternate solution (if it's at all feasible) is to set up some sort of AHK script to handle it: when I hit c, s, o, h, u, m, or b without modifiers, switch which source OBS displays. However, controlling that so it doesn't constantly trigger when chatting etc. seems like a tricky problem, and I've never used AHK to be "active" in multiple programs at once (i.e. doing something in one window based on a separate window).

If worst comes to worst, I could just disable in-game chat while streaming or display both overlays all the time, but neither of those is really a solution. Any insight or tools you can provide are much appreciated!
 
Back
Top