Guten Morgen!!
hat jemand eine Ahnung, warum nachfolgendes Skript nicht funktioniert? Das BIld hat einen transparenten Hintergrund, und soll langsam ausfaden. Sobald dies aber geschieht, erscheint wieder der Hintergrund ... ?!
Dies geschieht sowohl mit WinSetTrans als auch über dll-Aufruf.
Danke schonmal vorneweg für Hinweise...
[autoit]
#include <GUIConstants.au3>
#include <Array.au3>
HotKeySet("{ESC}", "f_Terminate")
AutoItSetOption ( "TrayIconDebug", 1 )
Opt("WinTitleMatchMode", 3)
Opt("GUIOnEventMode", 1)
$parent = GUICreate("Gui", 200, 100, 50, 45, BitOr($WS_POPUP, $WS_BORDER), BitOr($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW))
$close = GUICreate("Close", 17, 20, @DesktopWidth/2, @DesktopHeight/2, $WS_POPUP, $WS_EX_LAYERED, $parent)
GUICtrlCreatePic(@ScriptDir & '\close2.gif', 0, 0, 17, 20)
GUISetState (@SW_SHOW)
Sleep(3000)
[/autoit][autoit][/autoit][autoit]For $i = 0 To 255
Sleep(10)
WinSetTrans($close, "", 255-$i)
Next
Sleep(3000)
WinSetTrans($close, "", 255)
GUISetState (@SW_SHOW)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $close, "int", 3000, "long", 0x00090000);fade-out
[/autoit][autoit][/autoit][autoit][/autoit][autoit]Func f_Terminate()
Exit
EndFunc
Edit GtaSpider: Habe mal Autoit Tags statt code tags gemacht!