Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 44
  1. #1
    Join Date
    May 2006
    Posts
    5,380

    FreePlugin: Splash Image Transition Engine DLL

    OK Guys, here is the much awaited dll version of my spalsh transition engine, i was going to charge a small fee for the dll but as iv been "out of touch" for a while i had a change of heart and i want to give you guys something.....so here it is

    --------------------------------------------------------------------------------------
    Splash Image Transition Engine DLL v1.0.0.4

    --------------------------------------------------------------------------------------
    Programing: Dean Hall
    Email: support@dnet-software.com
    Website: www.dnet-software.com

    --------------------------------------------------------------------------------------
    The Splash Image Transition Engine has undergone a complete overhaul, I scraped the old "AutoIt3" exe scripts that powered
    the last version and completely remade the whole thing in DLL form with "Pure Basic", this makes the engine a lot more robust
    and as its programmed straight off the winAPI it can now be used with any (Windows) OS, although iv only tested it on xp and vista.

    And now it even supports ".tif" and ".tga" image formats.

    This version also has a tray spalsh image, this enables you to show a animated image from the users system tray (like msn).

    --------------------------------------------------------------------------------------
    Supported Systems: All Windows OS
    Supported Image Formats: (jpg,bmp,png,tif,tga)

    To include the transition engine into your project, add the below block of code to your
    global functions and edit the path to where you have the files.

    Code:
    --------------------------------------------------------------------------------------
    -- Transition Engine Globals ---------------------------------------------------------
    --------------------------------------------------------------------------------------
    -- Path to the dll file --------------------------------------------------------------
    STE_DLLPath = _SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\T-Engine.dll"; --
    require(_SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\T-Engine.dll"); -------
    --------------------------------------------------------------------------------------
    -- End Transition Engine Globals -----------------------------------------------------
    --------------------------------------------------------------------------------------

    The functions
    Code:
    --------------------------------------------------------------------------------------
    Function: STE_ShowSplashImage() 
    --------------------------------------------------------------------------------------
    STE_ShowSplashImage(string ImagePath, : The path of the image file
    				number X, : X Position on screen (0 = Center of screen, -1 = Center of application)
    				number Y, : Y Position on screen (0 = Center of screen, -1 = Center of application)
    				number Enter, : 1 to 10 (see below)
    				number EnterTime, : Time of enter transition (ms)
    				number Delay, : Time to show transition (ms)
    				number Exit, : 1 to 10 (see below)
    				number ExitTime, : Time of exit transition (ms)
    				number Wait,) : Wait for user click (0 = no wait, 1 = wait)
    				number Hide) : Hide the app window (0 = no hide, 1 = hide)
    
    --------------------------------------------------------------------------------------			
    			Enter Transitions
    				1 = Slides the image in from left To right
    				2 = Slides the image in from right To left
    				3 = Slides the image in from bottom to top
    				4 = Slides the image in from top to bottom
    				5 = Slides the image in from top left
    				6 = Slides the image in from top right
    				7 = Slides the image in from bottom left
    				8 = Slides the image in from bottom right
    				9 = Makes the image appear from its center
    				10 = Fades the image in
    --------------------------------------------------------------------------------------
    			Exit Transitions
    				1 = Slides the image out from left To right
    				2 = Slides the image out from right To left
    				3 = Slides the image out from bottom to top
    				4 = Slides the image out from top to bottom
    				5 = Slides the image out from top left
    				6 = Slides the image out from top right
    				7 = Slides the image out from bottom left
    				8 = Slides the image out from bottom right
    				9 = Makes the image disappear to its center
    				10 = Fades the window out
    --------------------------------------------------------------------------------------
    			Returns: 0 = success, 1 = fail
    --------------------------------------------------------------------------------------
    
    --------------------------------------------------------------------------------------
    -- Function: STE_ShowTrayImage
    --------------------------------------------------------------------------------------
    STE_ShowTrayImage(_SourceFolder.."\\AutoPlay\\Docs\\TrayImage.bmp",--ImagePath,
    					number Enter, : 1 to 10 (see below)
    					number EnterTime, : Time of enter transition (ms)
    					number Delay, : Time to show transition (ms)
    					number Exit, : 1 to 10 (see below)
    					number ExitTime, : Time of exit transition (ms)
    					number Wait) : Wait for user click (0 = no wait, 1 = wait)
    					
    --------------------------------------------------------------------------------------			
    				Enter Transitions
    					1 = Slides the image in from left To right
    					2 = Slides the image in from right To left
    					3 = Slides the image in from bottom to top
    					4 = Slides the image in from top to bottom
    					5 = Slides the image in from top right
    					6 = Slides the image in from top left
    					7 = Slides the image in from bottom right
    					8 = Slides the image in from bottom left
    					9 = Makes the image appear from its center
    					10 = Fades the image in
    --------------------------------------------------------------------------------------
    				Exit Transitions
    					1 = Slides the image out from left To right
    					2 = Slides the image out from right To left
    					3 = Slides the image out from bottom to top
    					4 = Slides the image out from top to bottom
    					5 = Slides the image out from top right
    					6 = Slides the image out from top left
    					7 = Slides the image out from bottom right
    					8 = Slides the image out from bottom left
    					9 = Makes the image disappear to its center
    					10 = Fades the window out
    --------------------------------------------------------------------------------------
    			Returns: 0 = success, 1 = fail
    --------------------------------------------------------------------------------------

    And heres the apz......Enjoy
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Very nice. SMall problem with the global code though.

    This:
    Code:
    --------------------------------------------------------------------------------------
    -- Transition Engine Globals ---------------------------------------------------------
    --------------------------------------------------------------------------------------
    -- Path to the dll file --------------------------------------------------------------
    STE_DLLPath = _SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\T-Engine.dll"; --
    require(_SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\T-Engine.dll"); -------
    --------------------------------------------------------------------------------------
    -- End Transition Engine Globals -----------------------------------------------------
    --------------------------------------------------------------------------------------
    Should be:
    Code:
    --------------------------------------------------------------------------------------
    -- Transition Engine Globals ---------------------------------------------------------
    --------------------------------------------------------------------------------------
    -- Path to the dll file --------------------------------------------------------------
    STE_DLLPath = _SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\TEngine.dll"; --
    require(_SourceFolder.."\\AutoPlay\\Plugins\\TransitionEngine\\TEngine.luac"); -------
    --------------------------------------------------------------------------------------
    -- End Transition Engine Globals -----------------------------------------------------
    --------------------------------------------------------------------------------------
    Also it does not seem to work if the image you use is in the AutoPlay folder and you build to Hard Drive Folder and rename resources. If you put the file outside the AutoPlay folder it works fine. At least that is what I have found.
    Dermot

    I am so out of here

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    silly mistake on the global, i dont know what happend there, copy n paste happy i think, the global in the example is ok though, just a typo in the readme

    the image must be in the docs folder, as ams compiles the contents of all folders except the docs to ".dat" files the dll cant find the file if its in the dat folder, and im not sure if/how i can access those files

    in all my tests, i set the image paths as "AutoPlay\\Docs\\..." and global paths as "AutoPlay\\Plugins\\...", i compiled the app to folder and renamed the resource folder to "Data", and everything worked ok so im not sure whats gone wrong there,

    ill crack open the files again tomoz and examine it in more detail

    Cheers for testing it Dermot
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    I was testing with the image in the Images folder and not the Docs. Putting it in the Docs folder makes sense.
    Dermot

    I am so out of here

  5. #5
    Join Date
    Oct 2006
    Posts
    345
    thanks for this .... and Dermot too for the notes, that would have driven me round the bend, although i would have thought it would make more sense to have the image expected in the images folder rather than the Docs

  6. #6
    Join Date
    Oct 2006
    Posts
    345

    Request :)

    REQUEST:
    ~~~~~~

    for the Tray Image, could you make it look to the location of the system tray and adjust accordingly ? ..... for example, if the system tray is at the top of the screen, could you make it slide down from the top of the screen, or from the side if the main system tray is docked at the side ? ... or give the user a 1 through 4 choice for its location ? ie, 1= bottom, 2= top, 3= left side, 4= right side ?

    thanks

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    mmm, yeah, i hadent tought of that, ill look at it a bit later, it shouldent be to hard to do,

    the position of the tray image is set in the ams function, so if i give you the source to the function you might be able to adjust it your self............ill see what i can do
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    Oct 2006
    Posts
    345
    is there a timer available for that tray image ? .. or do i have to use the page timer ?

    EDIT: .. thx for the reply

  9. #9
    Join Date
    May 2006
    Posts
    5,380
    mmm, im not sure i get you, you can set a delay (in ms) or have the user click the image to close it.....
    Open your eyes to Narcissism, Don't let her destroy your life!!

  10. #10
    Join Date
    Oct 2006
    Posts
    345
    ah, ok... there is a delay (in miliseconds) to auto close it... sounds perfect, i missed that option, too many things going on here and me not reading things properly

  11. #11
    Join Date
    Oct 2006
    Posts
    345
    ok this is working good so far, just one small issue with dll compatibility clashes, i have another DLL that controls the fade in and out, and it has been known in the past to mess with the fade transition and slide transitions, basically if i leave the app control set to 1 and use your dll to control the splash image, if it over laps at all the main app loading flashes then disappears (real fast) then appears and fades in as normal, leave control setting to 0 and it seems ok.

    couple of questions,

    1. while your dll is doing its thing is the script in AMS paused ?
    2. for the tray image, if i wanted to add text in there would i have to edit the image file and add the text that way ?


    cheers for this btw

    .. i forgot a question ... will this work in pre nt based OS environments, for example win98 ... for all transition effects ?
    Last edited by qwerty; 10-10-2007 at 12:22 PM.

  12. #12
    Join Date
    May 2006
    Posts
    5,380
    basically if i leave the app control set to 1 and use your dll to control the splash image, if it over laps at all the main app loading flashes then disappears (real fast) then appears and fades in as normal
    that might be something to do with the last arg (hide app window) make sure its set to 0 if you do not want to hide the app window, if that dosent work then get back to me

    on your other points
    1. while your dll is doing its thing is the script in AMS paused ?
    ams is waiting for a return from the dll so the block of code that the function is called in will be paused

    2. for the tray image, if i wanted to add text in there would i have to edit the image file and add the text that way ?
    at this stage yes, i am working on some extra functions that will show text as well but im not happy with the results so far, i have had better results from editing the image......but i do plan on adding text at some point

    will this work in pre nt based OS environments, for example win98 ... for all transition effects ?
    yes, it will work on 98, 2k xp and vista


    hope that helps you out
    Open your eyes to Narcissism, Don't let her destroy your life!!

  13. #13
    Join Date
    Oct 2006
    Posts
    345
    you are correct, leaving it to 0 solves the problem, in my testing i didnt want it hidden so i could control the length of the splash image time in relation to load time (however your second answer makes idea that null and void)


    1. - thats a shame, anyway to switch that so AMS doesn't wait for a return ? then it can be used to distract the user while the project is running code.

    2. no problem, it's probably just as easy to edit the image with mspaint and bearing in mind that the user can select any image, making it fully compatible will be pretty hard

    3. excellent


    thank you

  14. #14
    Join Date
    May 2006
    Posts
    5,380
    thats a shame, anyway to switch that so AMS doesn't wait for a return ? then it can be used to distract the user while the project is running code.
    sorry, its the way ams dll calls work, it calls the dll and waits for a return, i dont think there is anyway to bypass this
    Open your eyes to Narcissism, Don't let her destroy your life!!

  15. #15
    Join Date
    Oct 2006
    Posts
    345
    i thought it might be something like that, especially consodering even AMS cant do this directly :(
    i guess the "return" can only be made after the dll has finished it's task ? .... no way to send a "fake" return ? no need to debug a popup message most of the time, it either appears or doesnt ! and there can only be a certain number of reasons why


    bug report:

    if you run the dll when your project is minimised (having already got the window handle for the project) ... when your project is returned from the minimised state, it fails to be on top of other windows, even this code fails to trigger it on top (this is what i used when i encountered this effect with mz's radio dialog)

    Code:
    Application.Restore();
    Window.Show(handle);  -- Ensure on top status
    any thoughts ?

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. FREE UTILITY: Splash Image Transition Engine
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 38
    Last Post: 11-05-2007, 02:42 PM
  2. DLL = Custom Sized Image Popup...
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 64
    Last Post: 11-06-2005, 09:33 AM
  3. Time into Splash image and initial page...
    By lepinski in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 08-03-2004, 06:43 PM
  4. Example: Transparent Splash Image With No Border
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-20-2004, 11:01 PM
  5. Displaying a Splash Image
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts