Jump to content

getting guicreate to behave like splashimageon


iamtheky
 Share

Recommended Posts

On my current installer I have splashimageon to cover up all the action going on. I have been attempting to do the same with a flash video but things like update.exe dialog boxes come to the foreground over the flash object (as i guess $WS_EX_TOPMOST is yielding to another topmost object), is there a way to get the splashimageon behavior out of guicreate?

#include <Array.au3>
#include <EditConstants.au3>
#include <File.au3>
#Include <GuiListView.au3>
#include <StaticConstants.au3>
#include <Math.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUICloseOnESC", 1)         ;1=ESC  closes, 0=ESC won't close
Global $Object = ObjCreate("SAPI.SpVoice")
Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash.10")




    Global $flash = GUICreate("Videos", @desktopwidth, @desktopheight, 0, 0, BitOR($WS_POPUP, $WS_CLIPSIBLINGS , $WS_CLIPCHILDREN , $WS_EX_TOPMOST))    
                Global $vid = GUICtrlCreateObj($oRP, -1, -1, @desktopwidth + 10, @desktopheight + 30)
                    
                    With $oRP
                .bgcolor = "#ffffff"
                .Movie = 'http://www.youtube.com/v/JbJt9d8Kr9M&autoplay=1'
                .ScaleMode = 3
                .Loop = "True"
                .wmode = "transparent"
                .FlashVars = ""
            
            
            while 1
            guisetstate()
            wend

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

You could do a loop to see if your app loses focus and refocus it if it loses focus. It is messy, but it may do what you need. Also, as a second idea, you may want to look to see if what you are installing supports command line. If it does, you may be able to do a silent installation, thus solving your issue.

Link to comment
Share on other sites

Thanks MPH - after a couple of days of playing I found a ridiculously easy one line solution. Didnt think to search WIN* actions, I was hung up on Gui* and GuiCtrl*

#include <Array.au3>
#include <EditConstants.au3>
#include <File.au3>
#Include <GuiListView.au3>
#include <StaticConstants.au3>
#include <Math.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUICloseOnESC", 1)         ;1=ESC  closes, 0=ESC won't close
Global $Object = ObjCreate("SAPI.SpVoice")
Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash.10")




    Global $flash = GUICreate("Videos", @desktopwidth, @desktopheight, 0, 0, BitOR($WS_POPUP, $WS_CLIPSIBLINGS , $WS_CLIPCHILDREN , $WS_EX_TOPMOST))  

  WinSetOnTop("Videos" , "", 1)

                Global $vid = GUICtrlCreateObj($oRP, -1, -1, @desktopwidth + 10, @desktopheight + 30)
                    
                    With $oRP
Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...