saraconor Posted August 8, 2019 Share Posted August 8, 2019 #AutoIt3Wrapper_Res_File_Add=1.gif, rt_rcdata, G2 #include "resources.au3" #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "GIFAnimation.au3" #include <StaticConstants.au3> #include <EditConstants.au3> $hGui = GUICreate("GIF Animation", 411, 144, -1, -1, $WS_SIZEBOX, $WS_EX_COMPOSITED) $VS = GUICtrlCreateLabel("TEST TEST TEST", 144, 27, 273 , 38 , $ES_CENTER + $SS_CENTERIMAGE, $WS_EX_TRANSPARENT) GUICtrlSetColor(-1, 0x787878) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetFont(-1, 21, 800, 0) $hGIF = _GUICtrlCreateGIF(@ScriptDir & "\1.gif", "", 10, 10) if @Compiled then $hGIF = _GUICtrlCreateGIF(@ScriptFullPath, "10;G2", 61, 10) $B1 = GUICtrlCreateButton('STOP', 12, 71, 131, 41) $B2 = GUICtrlCreateButton('START', 151, 71, 131, 41) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case -3 exit case $B1 _GIF_PauseAnimation($hGIF) case $B2 _GIF_ResumeAnimation($hGIF) EndSwitch wend #AutoIt3Wrapper_Res_File_Add=1.gif, rt_rcdata, G2 #include "resources.au3" #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "GIFAnimation.au3" #include <StaticConstants.au3> #include <EditConstants.au3> $hGui = GUICreate("GIF Animation", 411, 144, -1, -1, $WS_SIZEBOX, $WS_EX_COMPOSITED) $VS = GUICtrlCreateLabel("TEST TEST TEST", 144, 27, 273 , 38 , $ES_CENTER + $SS_CENTERIMAGE, $WS_EX_TRANSPARENT) GUICtrlSetColor(-1, 0x787878) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetFont(-1, 21, 800, 0) $hGIF = _GUICtrlCreateGIF(@ScriptDir & "\1.gif", "", 10, 10) if @Compiled then $hGIF = _GUICtrlCreateGIF(@ScriptFullPath, "10;G2", 61, 10) $B1 = GUICtrlCreateButton('STOP', 12, 71, 131, 41) $B2 = GUICtrlCreateButton('START', 151, 71, 131, 41) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case -3 exit case $B1 _GIF_PauseAnimation($hGIF) case $B2 _GIF_ResumeAnimation($hGIF) EndSwitch wend There almos what i need, but animation is not working, and if i remove "$WS_SIZEBOX, $WS_EX_COMPOSITED", then animation is fine, but label is on the back of gif. So how to place labe on top of animated gif? GIF.rar Link to comment Share on other sites More sharing options...
UEZ Posted August 8, 2019 Share Posted August 8, 2019 Maybe this will help you: Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
saraconor Posted August 8, 2019 Author Share Posted August 8, 2019 Not help. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 8, 2019 Developers Share Posted August 8, 2019 19 minutes ago, saraconor said: Not help. not help either! SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted August 8, 2019 Share Posted August 8, 2019 In a single GUI, without flickering, I do not believe it is possible. If flickers don't bother you, try using _GDIPlus_GraphicsDrawString ($hGraphic,"Label is on top", 80, 96) after each GIF frame display... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector GIF Animation (cached) Screen Scraping Link to comment Share on other sites More sharing options...
saraconor Posted August 9, 2019 Author Share Posted August 9, 2019 (edited) Ok i get it, main gui with GIF and child gui with label. Edited August 9, 2019 by saraconor mistake 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