Voici un code qui crée une capture partielle de l'écran, et l'affiche dans une fenêtre, ceci tous les 10 millisecondes.
Mais, bizarre de chez bizarre (en tout cas pour moi


J'ai essayé de mettre un ReleaseDC_(), mais ça change rien.
Je pige pas. Une idée ?
Code : Tout sélectionner
LargCapture=300
HautCapture=300
#window =0
Mouse.POINT
OpenWindow ( #window ,LargCapture/2,HautCapture/2,LargCapture,HautCapture, "")
StickyWindow(#window,1)
Repeat
event=WindowEvent()
BitBlt_(GetDC_ ( WindowID (#window)),0,0,LargCapture,HautCapture,GetDC_(GetDesktopWindow_()),0,0,#SRCCOPY)
StartDrawing (WindowOutput(#window))
GetCursorPos_(Mouse)
xM=Mouse\x
yM=Mouse\y
Box(xM-2, yM-2, 6, 2 ,#Blue)
Box(xM-2, yM+2, 6, 2 ,#Blue)
Box(xM-2, yM, 2, 2 ,#Blue)
Box(xM+2, yM, 2, 2 ,#Blue)
StopDrawing()
Delay(10)
Until event=#PB_Event_CloseWindow