how to acheive "switch to next/previous window" function, i spent 2 days can not acheive it

i install AltTab, with the hotkey “Option + Tab” to switch between the last and the second-to-last window, when i tap “Tab” multiple times while press option, it will change to next window. when i release all key it will jump to the window i stop.

i want to acheive the result that when swipe left and right, and i can change to the last or next window(app) directly and repeatly. that means if i swipe multiples times, it will jump to the second-last, third last app.

I tried using if conditions, AppleScript, modifier keys, etc., but none of them worked. i really need some professional to help, it means a lot to me, i want to use this app but it turns hard. thanks a lot!

I think I don't understand, is this a question about AltTab or BetterTouchTool?

Hi @cheer

this is a pain to realize - but I’ve managed to realize it with a dirty hack (using the CLI command of AltTab and “Cycle through multiple actions” in BTT).

Not beautiful, but it works. See attached bttpreset.

To be honest, I have more hopes into the BTT Window Switcher functionality which better integrates with gestures. You can also have a look at my feature request here: BTT Window Switcher: Show Window Preview and hide the switcher popup

3F Swipe Left:Right Window History.bttpreset (97.5 KB)

about btt of course.

I've already imported it, but it doesn't seem to do anything and I can't trigger anything. Could it be because I set the shortcut to Ctrl+Tab? Can I change it to the one you suggested?

Hi cheer,

to be honest I would highly suggest you to give the BTT Window Switcher a try and solve your UseCase without the App AltTab - it’s just too complex to get this to work.

You can find a easy example attached:

  • 5F Swipe Left opens the Window Switcher with the next window focused
  • 5F Swipe Right moves up in the list
  • 5F Tap focuses the selected window

I hope from here you can iterate forward on your own.

5F Swipe Window Switcher.bttpreset (6.6 KB)