超级遮罩-圆形

#SingleInstance Force
#NoTrayIcon
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
BH := 150 ; Bar Height pixels
Time := 1 ; Seconds before bar shows up when holding ctrl

; --- Build GUI Start ---
Gui, Color, Black
Gui +AlwaysOnTop +LastFound
WinSet, Transparent, 220
Gui -Caption -Border +ToolWindow
; --- Build GUI End ---

settimer,refresh,10

refresh:
   old_x := x
   old_y := y
   MouseGetPos, X, Y       ; Get Mouse Position
   if (old_y == Y)
      return
   W = %A_ScreenWidth%      ; --- Calculations Start
   H = %A_ScreenHeight%
   Y1:= Y - (BH/2)
   Y2:= Y + (BH/2)         ; --- Calculations End
   Gui, Show, x0 y0 h%H% w%W% ; Show GUI
   Gui +LastFound
;    WinSet, Region, 0-0 %W%-0 %W%-%W% 0-%H% 0-0   0-%Y2% %W%-%Y2% %W%-%Y1% 0-%Y1% 0-%Y2% ; Co-ords for box boundaries
   w1:=W-100
   Winset, Region, % RegionNotEllipse( w, h, x, y1, 50, 50 )   ;圆形
;    WinSet, Region,    0-0 %W%-0 %W%-%W% 0-%H% 0-0  100-%Y2% %W1%-%Y2% %W1%-%Y1% 100-%Y1% 100-%Y2%
   return


ESC::
   Gui, Hide      ;hide gui when ctrl is let go of
   exitapp
   return


RegionNotEllipse( w, h, x, y, rx, ry, pointratio = 0.3 )
{
	lp := " " . x - rx . "-" . y . " "
	hp := x + rx . "-" y . " "
	Loop, % -1 + dr := Ceil(pointratio * 1.5708 * (rx + ry))
	{
	   qx := Round( rx * Cos(3.1416 * A_Index / dr))
	   qy := Round( ry * Sin(3.1416 * A_Index / dr))
	   lp .= x - qx . "-" . y + qy . " "
	   hp .= x + qx . "-" . y - qy . " "
	}
	return "0-0 " . w . "-0 " . w . "-" . h . " 0-" . h . " 0-0 " . lp . hp . x - rx . "-" . y . " 0-0"
}

给TA捐赠
共{{data.count}}人
人已捐赠
其他

超级玛丽

2020-3-9 5:48:44

其他

趣味脚本:桌面上循环显示文本

2020-3-9 5:50:44

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索