Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switcheroo would be perfect for me with these four features (which I've put into an AutoHotKey script) #166

Open
robertalanbevan opened this issue Apr 14, 2023 · 2 comments

Comments

@robertalanbevan
Copy link

robertalanbevan commented Apr 14, 2023

I use Switcheroo for its visual clarity rather than for its typing-focused design. This little script is unbelievably useful to that end.

  1. Single-leftclick enters the cursor-selected window (normally, it requires a double-click).
  2. Mousewheel scroll cycles your selection up and down through the list of windows.
  3. Middle click closes the highlighted window (selected by mousewheel or tab, not by cursor).
  4. Letting go of alt automatically opens the selected window, like in normal alt-tabbing.
{
    #IfWinExist ahk_exe switcheroo.exe
    
	~LButton::
	SendInput, {LButton Down}
	return
	
	!MButton::
	Send ^w
	return
	
	!Alt Up::
	SendInput {Enter Up}
	return
	
	!WheelDown::
	SendInput {down}
	return
	
	!WheelUp::
	SendInput {up}
	return
    
    #IfWinExist
}
@nilsandrey
Copy link

Cool, this is a variant with a selection of those (LButton and Wheel) working for AHK v2:

#HotIf WinActive("ahk_exe switcheroo.exe")
~LButton::
{
    SendInput "{LButton Down}"
}

!WheelDown::
{
    SendInput "{down}"
}

!WheelUp::
{
    SendInput "{up}"
}
#HotIf

@ShenDongge
Copy link

我使用 Switcheroo 是因为它的视觉清晰度,而不是它以打字为中心的设计。这个小脚本对此非常有用。

  1. 单击左键进入光标选择的窗口(通常,它需要双击)。
  2. 鼠标滚轮滚动在窗口列表中上下循环您的选择。
  3. 中键单击可关闭突出显示的窗口(通过鼠标滚轮或 Tab 键选择,而不是通过光标选择)。
  4. 松开 alt 会自动打开所选窗口,就像在普通的 Alt-Tab 键中一样。
{
    #IfWinExist ahk_exe switcheroo.exe
    
	~LButton::
	SendInput, {LButton Down}
	return
	
	!MButton::
	Send ^w
	return
	
	!Alt Up::
	SendInput {Enter Up}
	return
	
	!WheelDown::
	SendInput {down}
	return
	
	!WheelUp::
	SendInput {up}
	return
    
    #IfWinExist
}

I don't understand this aspect of the code, and I want a few functions, can you tell me how to operate?

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

No branches or pull requests

3 participants