hallo community
ich würde gerne ein script schreiben, welches meinen desktop screent und eine angegebene fläche davon als datei speichert. ich weiß leider keinen befehl um einen screenshot zu machen und auch keinen um einen berreich davon als datei auszulagern... ein üpaar tipps würden reichen ich habe halt nur überhaupt keine ahnung wie ich anfangen soll
bestimmten berreich des desktops automatisch als bild speichern
-
- [ gelöst ]
-
thastony -
2. Dezember 2007 um 04:56 -
Geschlossen -
Erledigt
-
-
- Offizieller Beitrag
Hallo,
gib in der AutoIt-Hife mal den Suchbegriff "ScreenCapture" ein!
-
- Offizieller Beitrag
Hallo
Dafür brauchst du natürlich (die momentan neuste) AutoIt Version 3.2.10.0!
Mfg Spider
-
ok dieses script funktioniert so halb bei mir:
Code; Capture full screen ; Fist parameter - filename, last - jpeg quality. DllCall("captdll.dll", "int", "CaptureScreen", "str", "dump_full.jpg", "int", 85) ; Capture given region ; Fist parameter - filename, next four: left, top, width, height. Last one - jpeg quality. ; Set quality to any negative number to capture into BMP DllCall("captdll.dll", "int", "CaptureRegion", "str", "dump_partial.bmp", "int", 100, "int", 100, "int", 300, "int", 200, "int", -1)
jedoch kriege ich eine fehlermeldung nachdem der screenshot gespeichert wurde und das programm beendet sich (also keine infos einfach nur "der prozess muss beendet werden")
ich habe autoit v3.2 und die captdll_v2
-
Da ist die Aufrufmethode geändert. So gehts:
[autoit]; Capture full screen
[/autoit]
; Fist parameter - filename, last - jpeg quality.
DllCall("captdll.dll", "int:cdecl", "CaptureScreen", "str", "dump_full.jpg", "int", 85)
; Capture given region
; Fist parameter - filename, next four: left, top, width, height. Last one - jpeg quality.
; Set quality to any negative number to capture into BMP
DllCall("captdll.dll", "int:cdecl", "CaptureRegion", "str", "dump_partial.bmp", "int", 100, "int", 100, "int", 300, "int", 200, "int", -1) -
dankööö