Sign in to follow this  
Followers 0
Boggild

Is it posible to create (and show) a new window without activating it?

5 posts in this topic

Hi

Im trying to create a RSS reader. I want to show a pop-up window every time a new message is suplied by the RSS FEED. The problem is that i want the window to be shown no matter what ($WS_EX_TOPMOST style) but I don't want the window to be active.

Share this post


Link to post
Share on other sites



well, a window needs to be active in order to keep displaying the rss-feed. but you might use the $WS_POPUP-style to make it impossible to move the window...

#include <GUIConstants.au3>

GUICreate("my gui",@desktopwidth,40,0,0,$WS_POPUP,$WS_EX_TOPMOST)
$txt = GUICtrlCreateLabel("I'm a RSS-feed... lalalala... more text here...",10,10,@desktopwidth)
GUICtrlSetFont(-1, 12, 1200)
GUISetState()

do
$msg = GUIGetMsg()

until $msg = $GUI_EVENT_CLOSE

Share this post


Link to post
Share on other sites

Or he means that he wants to window to lose focus when it becomes active?

#include <GUIConstants.au3>

$GUI = GUICreate("my gui",@desktopwidth,40,0,0,$WS_POPUP,$WS_EX_TOPMOST)
$txt = GUICtrlCreateLabel("I'm a RSS-feed... lalalala... more text here...",10,10,@desktopwidth)
GUICtrlSetFont(-1, 12, 1200)
$title = WinGetTitle("")
GUISetState()
WinActivate($title)
do
$msg = GUIGetMsg()
If WinActive($GUI) Then WinActivate($title)
$title = WinGetTitle("")
until $msg = $GUI_EVENT_CLOSE

#)

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