Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

issue with Japanese window titles? #143

Open
tactlessten opened this issue Nov 21, 2023 · 2 comments
Open

issue with Japanese window titles? #143

tactlessten opened this issue Nov 21, 2023 · 2 comments

Comments

@tactlessten
Copy link

I wanted to use this script to aide my Japanese study while playing games in Japanese. It worked perfectly with Genshin Impact while the game was in English, with an EN window title.

But when I changed the game's language to Japanese, the window title changed to 原神 which I think caused the following error:

[zoom_and_follow_mouse.py] Traceback (most recent call last):
[zoom_and_follow_mouse.py] File "C:\Users\xxxx\Documents\xxxx\OBS PYTHON\zoom_and_follow_mouse.py", line 371, in toggle_zoom
[zoom_and_follow_mouse.py] zoom.update_source_size()
[zoom_and_follow_mouse.py] File "C:\Users\xxxx\Documents\xxxx\OBS PYTHON\zoom_and_follow_mouse.py", line 58, in update_source_size
[zoom_and_follow_mouse.py] window = pwc.getWindowsWithTitle(data[0])[0]
[zoom_and_follow_mouse.py] IndexError: list index out of range

Any ideas how to resolve this?

@Danie10
Copy link

Danie10 commented Nov 21, 2023

I know you can also right-click on window title bar sometimes and set a window name (when it is active with Japanese language). I can't see now where I set that in the GUI (pretty sure I did), but other way is with xdotool which is incredibly powerful e.g. at https://askubuntu.com/questions/626505/how-do-i-permanently-change-window-titles.

@tactlessten
Copy link
Author

Unfortunately I'm windows OS and I'm a little worried about xdotool causing issues

But thank you for the reply!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants