Boggild Posted July 26, 2006 Share 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. Link to comment Share on other sites More sharing options...
rakudave Posted July 26, 2006 Share 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 Link to comment Share on other sites More sharing options...
nfwu Posted July 30, 2006 Share 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() Link to comment Share on other sites More sharing options...
Helge Posted July 30, 2006 Share Posted July 30, 2006 or GUISetState(@SW_SHOWNOACTIVATE) Link to comment Share on other sites More sharing options...
Boggild Posted August 1, 2006 Author Share Posted August 1, 2006 or GUISetState(@SW_SHOWNOACTIVATE) Thanks that did it 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