Code Monkey home page Code Monkey logo

Comments (3)

thedaryen avatar thedaryen commented on August 19, 2024

After some additional testing, It actually does work... sometimes. I think it's interacting weirdly with other programs I have running on background. I tried closing most of them and it started working. Started opening background programs one by one (some authotkey scripts, Steam, Autohidemousecursor, Wallpaper engine etc) and testing to see if it still worked and it started gettting inconsistent. I can't nail it down to a single program, it's very inconsistent.

After a while, Nyrna -t started not doing anything. Some more tries and it started minimizing Notepad instead of actually suspending it. When suspend occurs correctly, the minimized window can't get restored, but this "fake suspend" that happens sometimes just minimizes without actually suspending and you can restore Notepad by just clicking on the minimized window on the taskbar. After some toggles, suspend started working again magically. It probably has something to do with what program Nyrna detects as the "foreground" one to suspend.

I'll keep testing to narrow down a consistently reproducible scenario, but as of right now my only way of getting it to trigger is to test multiple times at different intervals and with different apps running on background until it starts failing.

from nyrna.

Merrit avatar Merrit commented on August 19, 2024

Thanks for the issue! 👍
Very helpful of you to provide the extra info, much appreciated.

I can confirm something weird is going on, I am seeing a similar lack of reliability over here. I will do some debugging and add some tests for this as soon as I get some free time.

I also have a couple planned changes that will improve the performance / speed of this toggle process.

from nyrna.

Merrit avatar Merrit commented on August 19, 2024

I've had some time to work on this and done a major refactor of how this works.

There is now a system tray icon (toggle_active_hotkey.exe) that you need to run, thereafter it will sit in the system tray and listen for the Pause hotkey, and when triggered it will launch the process to suspend/resume the active window - no fussing with windows shortcuts or passing flags needed.

In my testing it is running much much faster & has been quite reliable. Will include a dev build here if you'd like to test it as well.
nyrna-windows-portable.zip

from nyrna.

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.