like this?
PHP Code:
#Include <Misc.au3>
HotKeySet("{ESC}", "_exit")
$color1 = 0x0000FF
_run()
Func _Run()
$handle = ControlGetHandle("Program Manager", "", 1)
;$handle = ControlGetHandle("Counter-Strike", "", 1)
;$handle = ControlGetHandle("[active]", "", 1)
While 1
For $i=1 To 20
SetPixel($handle, (@DesktopWidth/2-10)+$i, @DesktopHeight/2, $color1)
Sleep(10)
SetPixel($handle, @DesktopWidth/2, (@DesktopHeight/2-10)+$i, $color1)
Next
Sleep(10)
WEnd
EndFunc ;==>_Run
Func SetPixel($handle, $x, $y, $color)
$dc = DllCall("user32.dll", "int", "GetDC", "hwnd", $handle)
$setpixel = DllCall("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
$realesedc = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
EndFunc ;==>SetPixel
Func _exit()
Exit
EndFunc ;==>_exit
[Only registered and activated users can see links. Click Here To Register...]