他のウィンドウは試したところ全て大丈夫でした
#include "user32.as" onexit goto *exit #define NULL 0 pos 100,300 button goto "EXIT",*exit repeat GetForegroundWindow hnd = stat a = "" z = 512 GetWindowText hnd, varptr(a), z FindWindow NULL, ""+a+"" memoWnd = stat if memoWnd == NULL { }else{ gsel 0 redraw 0 dim rect, 4 GetWindowRect memoWnd, varptr(rect) color 255,255,255 boxf color 0,0,0 pos 0,0 mes ""+a+"" mes "座標("+rect(0)+","+rect(1)+")" sizex = rect(2) - rect(0) sizey = rect(3) - rect(1) mes "サイズ("+sizex+","+sizey+")" mes varptr(a) redraw 1 } await 100 loop *exit end