Sign in to follow this  
Followers 0
Achilles

Creating a window that initially has no focus

4 posts in this topic

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]

Share this post


Link to post
Share on other sites



#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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by AdmiralAlkex

Share this post


Link to post
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
Sign in to follow this  
Followers 0