Achilles Posted August 5, 2008 Share Posted August 5, 2008 I've been trying to create a window that will pop up for a few seconds but not change the focus of any windows. I'm not sure if this is possible and I think I've tried most of the styles that would make sense. I don't really want to just use WinActivate right after the GuiSetState() because that causes it to flicker... Here's some code to play with: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $stye = BitOR( $WS_POPUPWINDOW,$WS_CAPTION) $otherGUI = GUICreate('') GUiSetState() Sleep(1000) $my_GUI=guicreate('',100,100,-1,-1, $stye) GUISetState () Sleep(3000) My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
smashly Posted August 5, 2008 Share Posted August 5, 2008 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $stye = BitOR( $WS_POPUPWINDOW,$WS_CAPTION) $otherGUI = GUICreate('') GUiSetState(@SW_SHOWNA) Sleep(1000) $my_GUI=guicreate('',100,100,-1,-1, $stye) GUISetState(@SW_SHOWNA) Sleep(3000) Link to comment Share on other sites More sharing options...
Achilles Posted August 6, 2008 Author Share Posted August 6, 2008 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $stye = BitOR( $WS_POPUPWINDOW,$WS_CAPTION) $otherGUI = GUICreate('') GUiSetState(@SW_SHOWNA) Sleep(1000) $my_GUI=guicreate('',100,100,-1,-1, $stye) GUISetState(@SW_SHOWNA) Sleep(3000)Oh, I didn't know those existed, I thought all the applicable macros for GUI's would be listed with the GUISetState().. Thanks! My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 6, 2008 Share Posted August 6, 2008 (edited) Oh, I didn't know those existed, I thought all the applicable macros for GUI's would be listed with the GUISetState().. Thanks!Actually that belong to _WinAPI_ShowWindow() check that page for all of them. Edited August 6, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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