Moien.
Ich habe vor kurzen eine UDF geschrieben, die mir ein Einblent effekt liefert.
Dies habe ich gemacht, um mir das nervige Guisetblabla zu sparen. und wenn ich ein Effekt will das nervige For.
Ich hoffe man kann die gebrauchen.
Spoiler anzeigen
;=================================================================================================
; Function: _winclose_gfx($w_form,$w_type = "exit", $w_sleep = 10)
; Description: Animated Gui Window
; Parameter(s): $w_form - The return value from The Gui
; $w_type - exit = Exit the Script
; delete = Delet the Gui
; hide = Hide the Gui
; $s_sleep - Sleeptime.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns 1
; On Failure - Returns -1
; @Error - 1 = Param error.
; Author(s): Mario2323
;=================================================================================================
Func _winclose_gfx($w_form,$w_type = "exit", $w_sleep = 10)
GUISetState(@SW_DISABLE,$w_form)
for $i = 255 to 0 step -1
WinSetTrans($w_form,"",$i)
sleep($w_sleep)
Next
if $w_type = "exit" Then
Exit
ElseIf $w_type = "hide" Then
GUISetState(@SW_HIDE,$w_form)
ElseIf $w_type = "delete" Then
GUIDelete($w_form)
Else
SetError(1)
Return -1
EndIf
Return 1
EndFunc
;=================================================================================================
; Function: _winopen_gfx($w_form, $w_sleep = 10)
; Description: Animated Gui Window
; Parameter(s): $w_form - The return value from The Gui
; $s_sleep - Sleeptime.
; Author(s): Mario2323
;=================================================================================================
Func _winopen_gfx($w_form, $w_sleep = 10)
WinSetTrans($w_form,"",0)
GUISetState(@SW_SHOW,$w_form)
for $i = 0 to 255 step 1
WinSetTrans($w_form,"",$i)
sleep($w_sleep)
Next
Return 1
EndFunc
Mario2323