Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Location
    Bangkok, Thailand
    Posts
    10

    Grin Splash image transparency in Dialog.SplashImage

    I am launching a splash image by Dialog.SplashImage.

    How to obtain a handle of this splash window (probably with WinAPI) and change the transparency of the splash image by WinApi.SetwindowTrans ?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Splash images "block" code from running.

    ie: if you issue
    Dialog.SplashImage("MyImage.jpg",300)
    Dialog.MessageBox("hi","hi")

    the MessageBox won't appear for 5 minutes.

    The only way around that would be to launch an exe before your splash image, then display the splash image.

    Your other exe (primer file) would simply wait for that window to appear, get it's handle, change the transparancy, and then exit.

    I haven't tested this -- but it seems very plausable.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Using this code:
    Code:
    -- On Startup Code to set the transparency of the splash image
    
    -- Setup the specific variables
    	local cLogo = "logo.bmp"
    	local nTransparency = 170;
    
    -- Run the splash screen transparency adjuster tool
    	File.Run(_TempLaunchFolder.."\\SetSplashTransparancy.exe",SessionVar.Expand("\"%ProductName% Setup\" "..nTransparency.."\""),"",-1,false);
    
    -- Display our splash screen and wait 30 seconds
    	Dialog.SplashImage(_TempLaunchFolder.."\\"..cLogo, 30, false);
    
    -- Remove the two primer files, they're no longer needed.
    	File.Delete(_TempLaunchFolder.."\\SetSplashTransparancy.exe");
    	File.Delete(_TempLaunchFolder.."\\"..cLogo);
    and then include your logo and the SetSplashTransparancy.exe as primer files.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  4. #4
    Join Date
    Apr 2010
    Posts
    80

    Whoah lots of coding there...

    I am trying to do the same thing superbank is doing only I got lost in your coding jassing. Let me get this straight...

    1. I first need to place the SetSplashTransparancy.exe in the startup of my project in the action section. What code is needed for this?

    2. Then insert Dialog.SplashImage(_SourceFolder .. "\\AutoPlay\\Images\\splash.jpg", 5, false); in the action section of the startup project.

    3. Now what?

    All help is appreciated. I would like to get this transparency splash screen going.

  5. #5
    Join Date
    Apr 2010
    Posts
    80

    I think I udnerstand now...

    Alright jassing I put the code...

    -- On Startup Code to set the transparency of the splash image

    -- Setup the specific variables
    local cLogo = "logo.bmp"
    local nTransparency = 170;

    -- Run the splash screen transparency adjuster tool
    File.Run(_TempLaunchFolder.."\\SetSplashTransparan cy.exe",SessionVar.Expand("\"%ProductName% Setup\" "..nTransparency.."\""),"",-1,false);

    -- Display our splash screen and wait 30 seconds
    Dialog.SplashImage(_TempLaunchFolder.."\\"..cLogo, 30, false);

    -- Remove the two primer files, they're no longer needed.
    File.Delete(_TempLaunchFolder.."\\SetSplashTranspa rancy.exe");
    File.Delete(_TempLaunchFolder.."\\"..cLogo);

    in the startup project action section. Where do I put the image I am using for the splash screen and where do I put SetSplashTransparancy.exe? Do I need to set certain directories in your code in order to see the image and the .exe? Is there any modification I need to change in your code?

    After doing the above I get the following error window upon load...

    On Startup, line 8: attempt to concatenate global' _TempLaunchFolder'(a nil value)

    Any ideas?

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Yea, you're using AMS but using code specific to SUF...


    (Post is purely for historical purposes so others searching will learn from....)

Posting Permissions

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