![]() I have similar issues trying to use hs.window:setFrame() or hs.window:setFrameInScreenBounds() (and hs.window:setFrameWithWorkarounds() is even worse). ![]() On the second invocation it resizes it to fill the screen.Īt some point these worked correctly. When I invoke fillScreen(), it moves the window to the left side but does not resize it. Now the window is taking up the right half of the screen. On the second invocation it moves it to the proper place on the right. When I first invoke fillRightHalf(), it resizes the window to half of the screen but doesn't move it. Let's say the focused window is already filling the screen. I now have to invoke each command multiple times in order to get them to succeed. ![]() Hs.window.focusedWindow():moveToUnit(, "p", function() fillRightHalf() end) Here is a minimal configuration sufficient to reproduce the issue: hs.window.animationDuration = 0 From the fact that it mentions “gameoverlayui” I’m taking an uneducated guess that it could be Steam preventing me from changing the settings, rather than macOS’s security settings.? I’m gonna look up “no watcher pid” on the Hammerspoon website and see what I can find while I await your response.Īny thoughts? For reference, I had Undertale open while doing this (my understanding is that’s what I’m supposed to do anyway).I have recently been having issues with my Hammerspoon window manipulation functions. You’re all set!” so unless I’m misinterpreting what “No accessibility access” means, I should be good on that front. When I go to preferences, next to Accessibility it does say “Accessibility is enabled. Here’s what I typed in and the result I got: (x)įrom the results, I take it Hammerspoon is not happy with me. The name of the game window is UNDERTALE (all-caps rather than just the uppercase U), so I went ahead and changed that part like you suggested in the code snippet. Ok, so: I think I did this correctly, relatively speaking. I know what this means, I just don’t know how to fix it because I don’t know enough to recognize errors in the syntax. 19:47:41: *** ERROR: /Users/MyUsername/.hammerspoon/a:1: unexpected symbol near '>' The error showing up in the console (right after getting a “Hammerspoon Error” notif) is this: I’m an idiot and wasn’t editing a.Įdit #2: Feel free to look at what I linked below for additional context, but here’s an update: I typed everything into a the exact same way that I had mistakenly typed it into the console earlier. Thanks in advance.Įdit: Oop.got this other error that I might be able to fix. ![]() Would anyone be so kind as to show me how I could do this or something similar with Hammerspoon, if at all possible? I’m definitely in way over my head here. There’s a video here of a kid using AHK to accomplish what I’m trying to do. When I set out to do this, I kept coming across references to AutoHotKey, which obviously isn’t supported on Mac. The arrow keys on my Mac are ridiculously tiny and it makes combat near impossible my intent is to find a way to bind the in-game Up/Left/Down/Right controls to WASD instead of the default arrow keys. The game does not allow for changing the keybindings for the controls in any capacity. I have a MacBook Air running the latest version of Catalina, I just downloaded the latest version of Hammerspoon, and I’ve been reading through info on the website/messing around with the basic tutorials for about 30 mins now.įor those of you who are familiar with the game Undertale, the game has retro controls: basically just the arrow keys and a few other keys. Full disclaimer: my knowledge of programming is incredibly limited.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |