TIM(新QQ)窗口命令无法套用,只能作用窗口句柄,求助

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: TIM(新QQ)窗口命令无法套用,只能作用窗口句柄,求助

TIM(新QQ)窗口命令无法套用,只能作用窗口句柄,求助

Post by lifenots » 17 Jan 2018, 09:12

目前的写成这样,用在其他程序可以实现没启动启动,启动最大化/最小化.但是每次启动更换窗口句柄就要更变,ahk_class TXGuiFoundation这段无法用在TIM上,研究好久没搞懂,求大神帮助.

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
	}

Top