Boggild 0 Posted July 26, 2006 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
rakudave 1 Posted July 26, 2006 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 Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Share this post Link to post Share on other sites
nfwu 4 Posted July 30, 2006 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 #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Share this post Link to post Share on other sites
Helge 3 Posted July 30, 2006 or GUISetState(@SW_SHOWNOACTIVATE) Share this post Link to post Share on other sites
Boggild 0 Posted August 1, 2006 or GUISetState(@SW_SHOWNOACTIVATE) Thanks that did it Share this post Link to post Share on other sites