aasmal97 / Window-Actions

A StreamDeck Plugin that allows a user to perform window actions, and navigate virtual desktops, on a windows machine
https://marketplace.elgato.com/product/window-actions-1466943f-b058-4e6c-be04-cbd65ce09b31
MIT License
8 stars 0 forks source link

Screen/Monitor names not being shown in the screen: dropdown menu #17

Open Reberebe opened 1 week ago

Reberebe commented 1 week ago

Plugin Name: Windows-Action: Move Window To New Monitor/Screen Stream Deck Model: Stream Deck XL

Description of Problem: I was using Windows Mover for a while, but last week, when trying to use the keys (Which I used to move windows to different screens or sections of the screens) I started getting a ⚠️ After reading the trouble shooting site, I noticed that the screens are not being displayed in the drop down menu of the plugin, while troubleshooting I tried other alternatives WIndows-Action being one of them, but the same problem persisted, I noticed that in both plugins the drop down menu for selecting the main screen wouldn't show my screen names, image (the dropdown arrow has been pressed in that screencap)

Troubleshooting Done: -Installing and re-installing plugins (both of them) -Installing and re-installing stream deck -Installing and re-installing/updating Nvidia Drivers -I read on the bar raider troubleshooting that a software called "team Viewer" could cause that, I make sure I don't have that installed

Other than that I found two reddit posts with that issue https://www.reddit.com/r/elgato/comments/1euaaeu/streamdeck_barraider_windows_mover/ and I made a different one https://www.reddit.com/r/elgato/comments/1g3tk9i/stream_deck_plugins_not_detecting_screen_names/ (Thanks again for answering there)

I know there was a windows updated after I came back that week, alongside some things I installed, Windows 10 Home, version:22H2 Build: 19045.5011

Other than that, I ran youtube music and I think that update and trying that software are the only things that changed from when it worked and when I noticed it stopped working

aasmal97 commented 1 week ago

@Reberebe Cool! I'll take a look this weekend and see what I can find. Couple of additional things to help me out:

Reberebe commented 1 week ago

Absolutely: •Monitors: VG248QG Version VG248QG August 2020 (Main display) VG245 Version VG245HE December 2018 VG245 Version VG245H January 2019

I have a TV connected as well Sony XBR-55X81CH September 2021

and a drawing tablet XP-PEN 22 plus (MD-220FH)
which I usually only have either the TV or the drawing tablet active, never both since my GPU only allows for 4 simultaneous displays (When I have the drawing tablet I have it in Duplicate mode, while the TV is in the Extend mode when pressing Windows+P)

•Stream Deck: 6.7.3 (21005) image

aasmal97 commented 2 days ago

@Reberebe Hey! Sorry about the long wait, but I found some time to try to debug your issue today.

So after running this on a Windows 10 Machine with the same verison, I did see that an update some Window's DLL logic might have been causing the plugin to silently crash. I also noticed in the code that handled monitor detection, if any monitor did not have user friendly name, it would also result in a crash.

Since you mentioned recently updating nvida drivers, which could trigger auto updating of monitor drivers, and connecting a TV which usually doesn't follow the same standards as dedicated monitors, I believe this was the cause of your issues. I adjusted the code logic to handle this edge case, and now you should be able to see all your monitors in the dropdown again :) !

Note that if your monitor does not have a user friendly name, it will default to the manufacture's product name and code, and if it doesn't have that, it will simply show up as Generic PnP Monitor with the display order attached to the name. I thought this was a good way to handle this, since at least some information, is better than none :) !

However, before I push this to production, I want to ensure this will fix your issue.

Please follow the following steps:

  1. Completely clear you computer of your current Window Actions plugin:

    • [ ] Close and exit out the StreamDeck app completely (Force quit in the bottom mini toolbar as well)
    • [ ] Open up Task Manager.
    • [ ] In Task Manager please FORCE QUIT a program called run.exe if it's running. It should have floppy disk icon next to it. If you can't find it, don't worry, you can proceed to the next step.
    • [ ] Open up File Explorer, and in the search bar, write the following command %APPDATA%/Elgato/StreamDeck/Plugins. Find 'com.arkyasmal.windowactions.sdPlugin' and completely delete the directory

    This is a video of me going through this process: https://github.com/user-attachments/assets/1fc88f8e-4b40-4c17-99aa-24daa5bf083c

  2. Download and Install the new release file

    • [ ] Download the following new testing release file. Don't worry, downloading this release from here will not stop the auto-updates from Elgato. You can download it by clicking the link above, and clicking on the three dots on the top right.
  3. Try to find your windows, and monitors through the dropdown again.