26998| 41
|
[GUI管理] 如何使gui窗口靠近桌面边缘时自动隐藏? |
悬赏100金钱已解决
最佳答案[au3]$hForm = GUICreate('My GUI',250,600)
GUISetState()
While GUIGetMsg() -3
_WinHide($hForm)
Sleep(10)
WEnd
Func _WinHide($Hwnd)
$Wp = WinGetPos($hForm)
$Mp = MouseGetPos()
Select
Case $Wp[1] $Wp[1]+$Wp[3]) Then
WinMove($Hwnd,"",$Wp[0],3-$Wp[3],$Wp[2],$Wp[3],1)
Else
WinMove($Hwnd,"",$Wp[0],3,$Wp[2],$Wp[3],1)
EndIf
Case $Wp[0] >= (@DesktopWidth - $Wp[2]+3)
If ($Mp[0] ...
| ||
发表于 2011-5-25 17:42:21
|
显示全部楼层
评分 | ||
发表于 2011-5-25 21:12:54
|
显示全部楼层
| ||
| ||
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-17 14:22 , Processed in 0.083107 second(s), 26 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.