timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.12k stars 240 forks source link

Begining Of entered text missing on output #306

Closed Data-007 closed 1 year ago

Data-007 commented 1 year ago

Describe the bug Ree: #303

Missing text in commands posting to windows(Discord) To Reproduce Steps to reproduce the behaviour:

@dodgyrabbit Something is wrong here.

Note: I tried also xdotool only lines also.

I have copied the line from your readme: bash -c "wmctrl -a firefox && xdotool key alt+1" changed one item "firefox" to "discord" bash -c "wmctrl -a discord && xdotool key alt+1"

Still, the text is missing in the post in discord. In fact, while testing, while editing the 'command' field Any text was divided between the command:Field and discord

Expected behavior I expected the readme command to be accurate and all text to be displayed in the correct space.

Operating system (please complete the following information)

Stream Deck Version -XL-

Data-007

dodgyrabbit commented 1 year ago

I tested the script in the documentation bash -c "wmctrl -a firefox && xdotool key alt+1" and as described, it will switch to firefox and set the first tab to active.

The documentation is correct in terms of what it says it will do.

@Data-007 see my comment on the other case you opened, but there is no specific action here based on my review to change the docs.

Data-007 commented 1 year ago

@dodgyrabbit My attempt was to highlight the problem(which I believe is in the code) and get a solution. It certainly used to work in previous versions of streamdeck_ui and worked flawlessly too. What has changed, only the program's creator can answer that one! Also, it should be noted that programs/units are continually state of flux perhaps it's discord or another module.

I note with a script I was running self-developed as per your suggestion, works too but refused to work until the visual streamdeck was closed to the tray, then it spits the msg's in discord rapid fire. Please have a think about what has changed. What in streamdeck could and is holing back text entered|>output

-- Data007

dodgyrabbit commented 1 year ago

My attempt was to highlight the problem(which I believe is in the code) and get a solution. It certainly used to work in previous versions of streamdeck_ui and worked flawlessly too.

What would be useful is if we can narrow this down. This feature has been unmodified for quite some time. However, the pnput library was upgraded between 2.0.6 and 2.0.13. What would be useful is if you could compare behaviour between those two versions. If the issue happens in both, then work your way backwards from there, 2.0.5 etc

Here is the full list: https://github.com/timothycrosley/streamdeck-ui/blob/master/CHANGELOG.md

Also, it should be noted that programs/units are continually state of flux perhaps it's discord or another module.

Yip, many moving parts.

I note with a script I was running self-developed as per your suggestion, works too but refused to work until the visual streamdeck was closed to the tray, then it spits the msg's in discord rapid fire.

Can you please elaborate in detail here. Can you share exactly what this script is, what behaviour you're setting etc. Some of what you're saying here is new and I can't follow what to make of this.

Data-007 commented 1 year ago

@dodgyrabbit That's interesting, if I take you correctly, "What would be useful is if we can narrow this down. This feature has been unmodified for quite some time. However, the pnput library was upgraded between 2.0.6 and 2.0.13. What would be useful is if you could compare behaviour between those two versions. If the issue happens in both, then work your way backwards from there, 2.0.5 etc"

pip uninstall pnput  ✔ WARNING: Skipping pnput as it is not installed.

A typo? "pnput"? was away to try this but replacing the package name. pip uninstall pynput pip install pynput==7.3

Have I got it wrong completely?

-- Data007

dodgyrabbit commented 1 year ago

Yea sorry it's pynput, but you can't independently modify that. What I mean is, downgrade streamdeck-ui until it's working for you.

For example:

python3 -m pip install streamdeck-ui==2.0.6 

Then

python3 -m pip install streamdeck-ui==2.0.5

etc. It should automatically bring the dependencies along.

Data-007 commented 1 year ago

Hi Pieter I have not done any reinstalling of the old versions, however.

Order of execution macro. I was sitting with firefox open, with the cursor in a text field. And I executed a greeting from the stream deck UI as before, I got the greeting in discord missing the first letter 'As I am famous for' however missing the first character, which ended up in the text field in firefox.

How is the macro processed, is it possible to alter the steps, to add a pause/change order of execution? This is getting into the realms of #208

-- Data007