Giter Site home page Giter Site logo

Comments (6)

WarmUpTill avatar WarmUpTill commented on September 26, 2024

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.

0rangeFox avatar 0rangeFox commented on September 26, 2024

"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.

WarmUpTill avatar WarmUpTill commented on September 26, 2024

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.

0rangeFox avatar 0rangeFox commented on September 26, 2024

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.

WarmUpTill avatar WarmUpTill commented on September 26, 2024

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:

image

So, if window "FoxDesktop" is in focus show the text source, else hide it.

from sceneswitcher.

0rangeFox avatar 0rangeFox commented on September 26, 2024

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:

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.