Comments (6)
Hi!
Thanks for reporting the issue!
Just for my understanding, what is your expectation how these settings are supposed to behave?
It was a bit difficult for me to see, as I could only have a look at the video on my phone, but I think you have configured the following:
"If a window with title exists and the current focus window changed, adjust the scene item visibility of a given source"
And this seemed to match what was shown in the video, as far as I could tell.
So I don't yet fully understand what is not working, unfortunately.
I apologize in advance if I am missing something obvious!
from sceneswitcher.
"If a window with title exists and the current focus window changed, adjust the scene item visibility of a given source"
Yes, that's exactly what I want, if you look at the video, that's not what's happening because it's running so that it's any window and not just "FoxDesktop".
I think the video was a bit confusing, but basically, in the first sequence, it ran correctly, but then when I switch between OBS and the plugin menu, it's already changing the visibility status of the source I selected. This is where the problem I'm talking about is occurring.
If you still don't understand what I'm talking about or if I'm not being explicit, let me know and I'll make another video with things to point out to help you better.
from sceneswitcher.
Yes, that's exactly what I want, if you look at the video, that's not what's happening because it's running so that it's any window and not just "FoxDesktop".
But you never closed the window "FoxDestop", did you? (Sorry if I just missed it)
So the window always existed.
Do you maybe want to setup a condition which is only true if the window "FoxDestop" was in focus and switched away from it?
If so, you will also have to tick the "is in focus" checkbox.
The "focus window changed" option applies to all windows not just "FoxDesktop".
So even if you switch between OBS and the plugin window, the "focus window" was previously "OBS" and changed to "Advanced scene switcher". (And during that time a window with name "FoxDesktop" existed => the condition evaluated to true)
Maybe I should rename that option to "Any focus window changed" to make it more clear what its functionality is.
If I still misunderstood, can you maybe describe the use case?
So what would the goal of the macro be?
(E.g. only show the source X if I am actually working with window Y and otherwise hide it)
from sceneswitcher.
Yes, that's exactly what I want, if you look at the video, that's not what's happening because it's running so that it's any window and not just "FoxDesktop".
But you never closed the window "FoxDestop", did you? (Sorry if I just missed it) So the window always existed.
Do you maybe want to setup a condition which is only true if the window "FoxDestop" was in focus and switched away from it? If so, you will also have to tick the "is in focus" checkbox.
The "focus window changed" option applies to all windows not just "FoxDesktop". So even if you switch between OBS and the plugin window, the "focus window" was previously "OBS" and changed to "Advanced scene switcher". (And during that time a window with name "FoxDesktop" existed => the condition evaluated to true) Maybe I should rename that option to "Any focus window changed" to make it more clear what its functionality is.
After reading what you've said, I've understood exactly the logic of it, and that's what has confused me. Because I thought that "Focus window changed" would be like, "If Window" and only that selected would be for any applications, so far so good, now if I had the "Window title matches" box selected, the condition in this case would be, if window.title == "FoxDesktop" && window.getLastFocus("FoxDesktop") != window.getFocus("FoxDesktop")
, I thought it would be like this, i.e. focus would not be exactly related to closing/opening the application, I assumed "Focus" would be like HTML when an element takes focus/unfocus and triggers actions.
If I still misunderstood, can you maybe describe the use case? So what would the goal of the macro be? (E.g. only show the source X if I am actually working with window Y and otherwise hide it)
With the explanation above I think you can understand a bit of my scenario, but it's basically this, I supposedly assumed an "Event Listener" of "Focus", that is, whenever I went to the application it executed the actions, and then when I started to move to another application, I would lose focus and execute the actions again, and so whenever I switched between applications when I went to the "FoxDesktop" I would always toggle the visibility, i.e. I go to the "FoxDesktop" window, it gives focus, activates the source visibility, I leave the window, it gives unfocus, deactivates the source visibility.
from sceneswitcher.
I go to the "FoxDesktop" window, it gives focus, activates the source visibility, I leave the window, it gives unfocus, deactivates the source visibility.
I would set this up like this:
So, if window "FoxDesktop" is in focus show the text source, else hide it.
from sceneswitcher.
I go to the "FoxDesktop" window, it gives focus, activates the source visibility, I leave the window, it gives unfocus, deactivates the source visibility.
I would set this up like this:
So, if window "FoxDesktop" is in focus show the text source, else hide it.
That's exactly what I've just done and it makes the most sense, but I didn't know about the dragging feature to create an else on the conditions, so it was through issue #934 that I was able to understand this part better. But anyway, thanks for everything and for the plugin. ✌️
from sceneswitcher.
Related Issues (20)
- add action for move window
- Send Cursor position to a Browser Source
- OBS crash when Twitch IRC server closes for maintenance HOT 7
- Text matches but nothing happens HOT 1
- snackarcin malware threat reported HOT 2
- Scene item visibility, allow showing/hiding all sources in group. HOT 6
- Macro Issue where check audio output volume triggers twice HOT 2
- When I try to specify a file in the macro match pattern, OBS crashes. HOT 4
- Option to set macro starting state
- Include pattern matching on selecting a scene, specifically with Scene
- OBS quit unexpectedly on MacOs HOT 1
- No OCR features building - CMake files not detected HOT 5
- Create macro under selected group HOT 2
- Crashes whenever I switch between macros HOT 5
- Allow disabling autosaving macros on switching HOT 6
- Setting up a macro with a certain transition automatically applies that transition to every scene, even disregarding previously set scene transition overrides. HOT 2
- Audio delay is set but not working HOT 2
- Paste as else action doesn't work HOT 3
- Cant install on Ubuntu 24.04.1 LTS HOT 3
- Size the settings window size HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sceneswitcher.