ZetupEXE Posted July 29, 2010 Share Posted July 29, 2010 (edited) Hi there, here is what i tried to achieve: I have a gui, with a background pic. The background pic is disabled after it was created so that i could place other elements over it. Example: $welcomeTxtGui = GUICreate ("WelcomeText", @DesktopWidth-32, 32, 16, @DesktopHeight/2-16, $WS_POPUP, $WS_EX_TOPMOST) GUISetBkColor (0x000000) $welcomeGuiPos = WinGetPos ($welcomeTxtGui) _ScreenCapture_SetBMPFormat(4) _ScreenCapture_Capture($tempBackPic, $welcomeGuiPos[0], $welcomeGuiPos[1], @DesktopWidth-17, @DesktopHeight/2+15) $guiBackPic = GUICtrlCreatePic ($tempBackPic, 0, 0, $welcomeGuiPos[2], $welcomeGuiPos[3]) GUICtrlSetState ($guiBackPic, $GUI_DISABLE) $guiTxtLabel = GUICtrlCreateLabel ("Bitte Warten...", 1, 1, $welcomeGuiPos[2]-4, $welcomeGuiPos[3]-4, $SS_NOTIFY + $SS_CENTER) GUICtrlSetFont (-1, 18, -1, -1, $font) GUICtrlSetColor (-1, 0xFFFFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateIcon (@SystemDir & "\shell32.dll", 24, 0, 0) GUISetState (@SW_SHOW) While 1 Sleep (250) WEnd My Problem is, that i want to have an icon (maybe animated) without that black background. All i've read so far was to convert an icon into bitmap and then work with some functions from icon.au3 or winapiex. but this won't work for animated icons or? how could i achieve this? i also played a little bit with the _API_SetLayeredWindowAttributes function (found in this forum. thx) thx. Zetup-EXE Edited July 29, 2010 by ZetupEXE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now