- 557 名前:名無しさん@お腹いっぱい。 mailto:sage [2012/03/01(木) 23:35:57.02 ID:tZwKmgw00]
- GJ ただナビと重なる部分が消えてしまうね
俺も軌跡表示を試してて同じ問題に遭遇したけど、 透明かつクリックを透過するウィンドウを作成して、そこに軌跡を描画することで回避できた 以下>>203を改変した単独起動用のサンプルスクリプト。参考になれば幸いです CoordMode, Mouse, Screen Moge_PenSize = 3 Moge_PenColor = 0x00FF00 Gui, Color, EEAA99 ;透明なウィンドウを作成 Gui, -Caption -Border +AlwaysOnTop +ToolWindow +LastFound +E0x00020020 WinSet, TransColor, EEAA99 Gui, Show,x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% Hide hGuiWnd := WinExist() hDC := DllCall("GetDC", "UInt", hGuiWnd) hPen:=DllCall("gdi32.dll\CreatePen", "Int", 0 , "Int", Moge_PenSize, "Int", Moge_PenColor, "UInt") hOldPen:=DllCall("gdi32.dll\SelectObject", "UInt",hDC, "UInt",hPen) Return ~RButton:: MouseGetPos,ox,oy DllCall("gdi32.dll\MoveToEx", "UInt",hDC, "Int",oX, "Int",oY, "UInt",0) Gui,show,NoActivate while GetKeyState("Rbutton", "P") { MouseGetPos, x, y dx:=x-oX, dy:=y-oY, dist:=Sqrt(dx**2+dy**2) if (dist> 10) { DllCall("gdi32.dll\LineTo", "UInt",hDC, "Int",x, "Int",y) } } Gui, hide Return
|

|