iamtheky Posted September 20, 2010 Share Posted September 20, 2010 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 More sharing options...
Bert Posted September 20, 2010 Share Posted September 20, 2010 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
iamtheky Posted September 22, 2010 Author Share Posted September 22, 2010 (edited) 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 September 22, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) 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