2013-05-05 91 views
1

我正在使用两个监视器,并且消息框总是出现在主屏幕的中间,而不管活动窗口在哪里。 如何指定飞溅文本框或消息框的位置,使其显示在活动窗口的中间,而不是主监视器的中间位置?位置飞溅文本或消息框

回答

0

你可以试试这个:

#Persistent 
AppName=Move 
Menu, Tray, Tip, %AppName% 
Menu, Tray, Icon , Shell32.dll, 26, 1 ; 45, 28, 113, 74, 134 


^w:: 
WinGetPos, X, Y, Width, Height, A 
Mx:=X + (Width/2) -100 
My:=Y + (Height/2) -100 
SetTimer, MoveMsgBox, -50 
MsgBox, ,%AppName%, %X% %Y% OK 
Return 

MoveMsgBox: 
WinMove, %AppName%, , %Mx% , %My% 
Return