zuloosuccess.blogg.se

Hammerspoon spam click
Hammerspoon spam click






  1. #HAMMERSPOON SPAM CLICK FULL#
  2. #HAMMERSPOON SPAM CLICK CODE#
  3. #HAMMERSPOON SPAM CLICK MAC#
  4. #HAMMERSPOON SPAM CLICK WINDOWS#

Obviously, the lower the sleeping time, the faster you should log out. A technical detail is about the sleeping time between the button presses. This can be easily fixed by first pressing an additional key that closes all menus but I don't have problems with that (I don't have menus open during battles). Note that the logout macro won't work in-game if you have any menu open. Note that every time you change the code, you need to reload the config (by pressing the corresponding button in the Hammerspoon UI). Note that the macro rebinds the key regardless of POE being launched.

#HAMMERSPOON SPAM CLICK CODE#

This is in the 3d line in the code counting from the end. To fix the clicking location (since I hardcoded it to my resolution), try different x and y numbers until you hit the correct numbers. The line is the 5th line in the code counting from the end. To rebind a different key, just replace the symbol § in the code with the symbol of your choice. The code binds to a single key a simple sequence of clicking Escape and double-clicking (to be sure) the Logout button. Or ask me in the comments!Īs I said, this is a minimal implementation.

hammerspoon spam click

For binding a different key or troubleshooting, refer to the next section or the comments in the code. Try it! By default, the logout is bound to the § key (that is just below Escape on my keyboard). Here you can choose a different key (replace § with something else in the next line) and fine-tune the location of the click (I hardcoded the location for my screen and it might not work for different resolutions). Hs.(hs., point):setProperty(clickState, 2):post() Hs.(hs., point):setProperty(clickState, 1):post() But maybe try increasing the sleep time if the logout macro only opens the menu but does not click the logout button. It's a utility function, you probably don't need to tweak it. Using the same applications table as hyper, we add a new key/value pair for preferred_display.- This is a shitty implementation of double click. Once again, we return to my config variable in a. Inspired by Seth Messer's config, I wrote a simplified a system. If I have two screens, I want work right in front of me, and distraction/calendaring applications off to the side.

#HAMMERSPOON SPAM CLICK FULL#

If I'm on one screen, I want everything full screened, and I switch between them using hyper shortcuts.

#HAMMERSPOON SPAM CLICK WINDOWS#

Autolayout on docking or undocking the laptopĪfter using my basic keys for moving windows around, I realized the main use case for me was setting up my windows on my two monitors after docking my laptop. It's a very small thing, but it brings me a lot of joy. I use this more than I thought I would, it turned out that most of my window moving was simply to bring two things close together for comparison or reference. Hold ⎇ for 70/30." ) : searchSubText ( true ) : choices ( windows ) : show () movewindows : exit () while it's not terribly complex, it's a good example of the powerful tools Hammerspoon gives you to build your own automations.įirst we set up the modal and bind it to our old friend Hyper.Ĭhooser : placeholderText ( "Choose window for 50/50 split. I then hit `v` to enter my split window chooser, then I choose the window I want alongside my "work" window and everything is ready to go! Hitting HYPER+m allows me to enter my window movement modal. Realizing just how common this particular use case is, and inspired by how easy it is to split a screen in vim using fzf.vim, I wrote a function to make my life easier. Switch to my reference, enter move mode, move it to the right.Switch to my work, enter move mode, move it to the left.Flip back and forth (efficiently using a!) a few times before realizing that I need them both at the same time.

hammerspoon spam click

  • Go find that material, open it up full screen.
  • hammerspoon spam click

    Realize I need some reference material.Sometimes it's Dash.app, some other reference material, or a ticket. There is one use case where I'll commonly have two windows open… one to work on, the other for reference. I work on a laptop monitor a lot, and even at my nice setup at my desk I try to keep my main monitor on a single app. While much of a is very simple, there are two automations that I'm proud of. In my configuration, a isn't very complex or interesting, and a lot of it was written originally by Tom Miller. I used to think multitasking was a super power of mine, now I think it's my kryptonite. While ten years ago I would have leapt for the tiling options 1 (I still would like to give i3wm a go one of these days!) I have been making an effort to only have one application in view at any given time.

    #HAMMERSPOON SPAM CLICK MAC#

    There is a lot of awesome Hammerspoon code to help you with that, from clones of popular Mac applications like Spectacle to complex tiling systems. One of the main things people do with Hammerspoon is wrangle their window layouts.








    Hammerspoon spam click