本帖最後由 rictirse 於 2014-12-5 16:32 編輯
- Global $SRCCOPY = 0x00CC0020
- Global $leave = 0
- HotKeySet ("","leave")
- HotKeySet ("{ESC}","_Exit")
- SplashTextOn ( "AU3MAG", "" , 100 , 100 , 0, 0, 1 )
- $MyhWnd = WinGetHandle("AU3MAG")
- While Not $leave
- Sleep(25)
- MAG()
- WEnd
- Func MAG()
- $MyHDC = DLLCall("user32.dll","int","GetDC","hwnd",$MyhWnd)
- If @error Then Return
- $DeskHDC = DLLCall("user32.dll","int","GetDC","hwnd",0)
- If Not @error Then
- $xy = MouseGetPos()
- If Not @error Then
- $l = $xy[0]-10
- $t = $xy[1]-10
- DLLCall("gdi32.dll","int","StretchBlt","int",$MyHDC[0],"int",0,"int",0,"int",100,"int",100,"int",$DeskHDC[0],"int", $l,"int",$t,"int",20,"int",20,"long",$SRCCOPY)
- EndIf
- DLLCall("user32.dll","int","ReleaseDC","int",$DeskHDC[0],"hwnd",0)
- EndIf
- DLLCall("user32.dll","int","ReleaseDC","int",$MyHDC[0],"hwnd",$MyhWnd)
- EndFunc
- Func leave()
- $leave = 1
- EndFunc
- Func _Exit()
- Exit
- EndFunc
複製代碼 |