看板 EzHotKey 關於我們 聯絡資訊
參考了官網的help,寫了下面這個東西,可以得到圖檔的寬跟高: --------start---------- ; Example: A moving progress bar overlayed on a background image. link = C:\test.png ;圖檔連結 Gui, Add, Picture, x0 y0 , %link% Gui, Show WinGetActiveStats, A, Width, Height, X, Y WinSet, Transparent, 0, a ;讓當前視窗透明度為10 Width := Width -17 Height := Height -38 MsgBox, The active window "%Title%" is %Width% wide`, %Height% tall`, and positioned at %X%`,%Y%. ExitApp return GuiClose: ExitApp ---------end----------- 不過缺點是路徑不能有中文...圖不能超過螢幕大小... 還在嘗試克服中。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.147.6.242 ※ 編輯: kslman 來自: 122.147.6.242 (06/28 12:21)