Code: Select all
;win+Q QQTIM
<#q::
{
DetectHiddenWindows, on
SetWinDelay, 0
IfWinNotExist ahk_class TXGuiFoundation
Run c:\Souls\Tencent\TIM\Bin\TIM.exe
else
{
IfWinNotActive ahk_class TXGuiFoundation
{
WinActivate, ahk_id 0x000109D2
WinMove, ahk_id 0x000109D2,1913,-208,3007,2000
}
else
;WinMinimize
WinKill, ahk_id 0x000109D2
}
return
}