現在のウインドウの最大化、最小化をWin+↑/Win+↓に割り当てるスクリプト。当サイトで配布してるSendTextが必要。Config.pyに以下の行を追加。


import clcore

def Maximaize():
clcore.RaiseNextWindow()
hWnd = GetTopLevelWindow(GetForegroundWindow())
import clSendText
clSendText.SendKeys('%{space}x')

def Minimaize():
clcore.RaiseNextWindow()
hWnd = GetTopLevelWindow(GetForegroundWindow())
import clSendText
clSendText.SendKeys('%{space}n')

SetHotKeyHandler( VK_UP, MODKEY_WIN, Maximaize ) # WIN - ↑
SetHotKeyHandler( VK_DOWN, MODKEY_WIN, Minimaize ) # WIN - ↓