Français
Source/ Codesnippets

Area Bildschirmfoto Handle Screenshot

 

Julian
Schmidt

DEF CreateCompatibleBitmap(3) !"GDI32","CreateCompatibleBitmap"

Proc CaptureWindow

    Paramètres handle&
    Externe("User32","SetForegroundWindow",handle&)
    Sleep 200
    Externe("User32","keybd_event",$2C,0,0,0)
    Cas handle&<>0 : Externe("User32","keybd_event",$2C,1,0,0)
    MCLS %maxx,%maxY
    Début de peinture -1
    ClipLoadBmp 0,0;0
    ClearClip
    EndPaint
    Var hpic&=Créer("hNewPic", %BmpX, %BmpY, 0)
    Début de peinture hpic&
    MCopyBmp 0,0-%maxx,%maxY > 0,0;0
    EndPaint
    Retour hpic&

ENDPROC

Proc CaptureArea

    Paramètres xpos%,ypos%,maxx!,maxY!
    Var hdc& = Externe("User32","GetDC",0)
    Var hmdc& = Externe("GDI32","CreateCompatibleDC",hdc&)
    Var hbitmap& = CreateCompatibleBitmap(hdc&,maxx!,maxY!)
    Externe("GDI32","SelectObject",hmdc&, hbitmap&)
    Externe("GDI32","BitBlt",hmdc&, 0, 0, maxx!, maxY!, hdc&, xpos%, ypos%, $0CC0020)
    hbitmap& = Externe("GDI32","GetCurrentObject",hmdc&, 7)
    Externe("GDI32","DeleteDC",hmdc&)
    Externe("User32","ReleaseDC","User32","ReleaseDC")
    Retour hbitmap&

ENDPROC

Cls
DrawSizedPic CaptureWindow(0), 0, 0 - width(%hwnd), height(%hwnd); 0'Ganzer Bildschirn
Waitinput
DrawSizedPic CaptureWindow(%hwnd), 0, 0 - width(%hwnd), height(%hwnd); 0'la fenêtre
Waitinput
DrawSizedPic CaptureArea(0,0,width(%hwnd),height(%hwnd)), 0, 0 - width(%hwnd), height(%hwnd); 0'région
Waitinput
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
15.09.2012  
 



Zum Quelltext


Topictitle, max. 100 marque.
 

Systemprofile:

ne...aucune Systemprofil angelegt. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

s'il te plaît s'inscrire um une Beitrag trop verfassen.
 

Options du sujet

5.722 Views

Untitledvor 0 min.
ByteAttack27.11.2023
Walter11.04.2023
p.specht21.11.2021
R.Schneider20.11.2021
plus...

Themeninformationen

cet Thema hat 1 participant:

Julian Schmidt (1x)


Admins  |  AGB  |  Applications  |  Auteurs  |  Chat  |  protection des données  |  Télécharger  |  Entrance  |  Aider  |  Merchantportal  |  Empreinte  |  Mart  |  Interfaces  |  SDK  |  Services  |  Jeux  |  cherche  |  Support

un projet aller XProfaner, qui il y a!


Mon XProfan
Privé Nouvelles
Eigenes Ablageforum
Sujets-La liste de voeux
Eigene Posts
Eigene Sujets
Zwischenablage
Annuler
 Deutsch English Français Español Italia
Traductions

protection des données


Wir verwenden Cookies seulement comme Session-Cookies à cause de qui technischen Notwendigkeit et chez uns gibt es aucun Cookies de Drittanbietern.

si du ici sur unsere Webseite klickst ou bien navigierst, stimmst du unserer Erfassung de Informationen dans unseren Cookies sur XProfan.Net trop.

Weitere Informationen trop unseren Cookies et en supplément, comment du qui Kontrolle par-dessus behältst, findest du dans unserer nachfolgenden Datenschutzerklärung.


d'accordDatenschutzerklärung
je voudrais keinen Cookie