Hi Sithlord95,
schöne Idee gefällt mir gut !
Ich habe mal ein paar Anpassungen vorgenommen, schau mal, ob es das ist was Du willst ?
Spoiler anzeigen
#include <ScreenCapture.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("Guioneventmode", 1)
[/autoit] [autoit][/autoit] [autoit]$image = @MyDocumentsDir & "\GDIPlus_Image1.jpg"
;! das Pic und wo man es findet bzw. gespeichert wird !
_ScreenCapture_Capture($image) ; ! ScreenCapture von Pic !
$GUI = GUICreate("Form1", 1408, 812, 0, -4)
GUISetOnEvent(-1, "_4")
;!!! ### schau Dir mal Guioneventmode einmal genauer an !
$Pic = GUICtrlCreatePic($image, 0, 40, 1425, 785, _
BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
; ! $image aufrufen !
$Button1 = GUICtrlCreateButton("Anleitung", 8, 0, 145, 33, 0)
$Button2 = GUICtrlCreateButton("Tastenbelegung", 168, 0, 145, 33, 0)
$Button3 = GUICtrlCreateButton("ScreenShot", 328, 0, 145, 33, 0)
$Date = GUICtrlCreateDate("2009/04/12 16:19:10", 1184, 8, 217, 25)
$Button4 = GUICtrlCreateButton("Beenden", 488, 0, 145, 33, 0)
GUICtrlSetOnEvent(-1, "_4")
GUISetOnEvent($Button1, "_1")
;!!! GUISetOnEvent vs. GUICtrlSetOnEvent !!! nicht verwechseln
GUISetOnEvent($Button2, "_2")
GUISetOnEvent($Button3, "_3")
GUISetOnEvent(-1, "_4")
GUISetOnEvent($Pic, "_pic")
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit]While 1
Sleep(1000) ; ! eingefügt !
WEnd
Func _1()
EndFunc ;==>_1
Func _2()
EndFunc ;==>_2
Func _3()
EndFunc ;==>_3
Func _4()
Exit ; ! eingefügt !
EndFunc ;==>_4
Func _pic()
EndFunc ;==>_pic
; Ende
[/autoit]
Viel Erfolg !