Paradox Posted October 6, 2005 Posted October 6, 2005 Quick question... Are animated GIF images supported in version 3.1.1.75?? I'm finishing up my project and I finally doing some of my graphic work. I was originally going to use the progress bar function, but my higher up want to have a series of splash screens for my installation... Since I figure, and correct me if I'm wrong, that the progress bar function cannot be overlayed on an image that is given topmost priority, as seen in my code here: SplashImageOn("Docubase Install", $splash0, @desktopwidth, @desktopheight, -1, -1, 1) Yes, the image needs to be topmost because we (as a company) have decided that we only want the end user to see our splash and none of the specifics that are going on behind it. So, back to the question at hand... I was going to make an animated gif image in Photoshop ImageReady CS2, and have some little glowing squares similar to the ones that are shown during the Windows XP installation. Anyone got an idea or an answer for me??
BigDod Posted October 6, 2005 Posted October 6, 2005 Quick question... Are animated GIF images supported in version 3.1.1.75?? I'm finishing up my project and I finally doing some of my graphic work. I was originally going to use the progress bar function, but my higher up want to have a series of splash screens for my installation... Since I figure, and correct me if I'm wrong, that the progress bar function cannot be overlayed on an image that is given topmost priority, as seen in my code here:SplashImageOn("Docubase Install", $splash0, @desktopwidth, @desktopheight, -1, -1, 1)Yes, the image needs to be topmost because we (as a company) have decided that we only want the end user to see our splash and none of the specifics that are going on behind it.So, back to the question at hand... I was going to make an animated gif image in Photoshop ImageReady CS2, and have some little glowing squares similar to the ones that are shown during the Windows XP installation. Anyone got an idea or an answer for me??Last time I checked animated gifs were not supported. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Zedna Posted October 6, 2005 Posted October 6, 2005 If you need to display animated GIfs, which aren't directly supported in AutoIt,you can do it indirectly.1) some way extract images from animated GIF and use GUICtrSetImage()2) create small temporary HTML page only with reference to animated GIF and show this page via COM functions (without borders)3) ?...?it's just my ideashave a luck with your work Resources UDF ResourcesEx UDF AutoIt Forum Search
kjactive Posted October 7, 2005 Posted October 7, 2005 Well animated gif graphics are not supported in Autoit3 gui but you could use a embedded obj and display the graphics anywhere in your application and even do this obj into a control - most .gif files do nicely...#include "GUIConstants.au3" $obj = ObjCreate("Gif89.Gif89.1") GUICreate ( "Embedded Gif control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUICtrlCreateObj( $obj, 10, 40 , 300 , 260 ) GUISetState () ;Show GUI With $obj .filename = 'C:\Pics\logo.gif' .autostart EndWith ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect Wend $obj = 0 GUIDelete() ExitDownload the activex obj...put gif89.dll into into your system32 drawer...initiate the library like this: use run 'regsvr32.exe gif89.dll' // uninstall again like this if you want to drop this obj out of your system: and run regsvr32.exe /u gif89.dll ( delete the library afterwards )I have a homepage with funny stuff where this library,documentation and some funny examples can be downloaded from:http://www.sitecenter.dk/latenight/nss-folder/download/kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc...
Dickb Posted October 7, 2005 Posted October 7, 2005 It's also possible to use MS internet explorer to show animated gifs. I've tested this in Windows XP pro. #include "GUIConstants.au3" $oIE = ObjCreate("Shell.Explorer.2") $iWidth = 40 ; Set window width $iHeigth = 60 ; Set window height GUICreate("Embedded Gif control Test", 640, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUICtrlCreateObj($oIE, 10, 10, $iWidth, $iHeigth) ; Create IE view window GUISetState();Show GUI With $oIE .Top = -1 ; Top left 3D border .Left = -1 ; Hide left 3D border .Width = $iHeigth + 50; Hide right scroll bar .navigate2('C:\MyGif\Test.gif'); Path to animated gif EndWith ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd $obj = 0 GUIDelete() Exit
kjactive Posted October 7, 2005 Posted October 7, 2005 Yes that's true but one can't control the playback in explorer as one can with the special gif com obj... kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc...
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