Thread View: news.software.readers
9 messages
9 total messages
Started by Ralf Hasse
Thu, 11 Nov 2004 06:54
[Xnews] Always open the same servers
Author: Ralf Hasse
Date: Thu, 11 Nov 2004 06:54
Date: Thu, 11 Nov 2004 06:54
22 lines
1379 bytes
1379 bytes
Hi, in Xnews, when you have multiple servers opened, these servers are remembered when you leave Xnews with that windows still open. The xnews.ini gets an entry like this [Opened] 1=S:MyServerNo1 2=S:MyOtherServer Count=2 Is there a way to make this setting stick? When I leave Xnews with another or no server opened these lines are overridden/deleted. Making the Xnews.ini write-protected is not an option (won't work). Any ideas? Ralf -- If you were waiting for the opportune moment, that was it.
Re: [Xnews] Always open the same servers
Author: DC
Date: Thu, 11 Nov 2004 22:33
Date: Thu, 11 Nov 2004 22:33
32 lines
2038 bytes
2038 bytes
Ralf Hasse wrote: > Hi, > in Xnews, when you have multiple servers opened, these servers are > remembered when you leave Xnews with that windows still open. > The xnews.ini gets an entry like this > [Opened] > 1=S:MyServerNo1 > 2=S:MyOtherServer > Count=2 > Is there a way to make this setting stick? When I leave Xnews with > another or no server opened these lines are overridden/deleted. > Making the Xnews.ini write-protected is not an option (won't work). > Any ideas? Maybe have a startup script to do a search and replace on that block of text? I don't know how to do it, specifically, but it might be something you can explore. Maybe drop in on comp.editors and see what they can suggest. Post results if you get any. Good luck. -- DC Linux RU #1000111011000111001 Luck is when preparation meets opportunity. -- Neil Peart
Re: [Xnews] Always open the same servers
Author: MartinS
Date: Fri, 12 Nov 2004 00:20
Date: Fri, 12 Nov 2004 00:20
26 lines
1690 bytes
1690 bytes
Ralf Hasse <expires_1Dez04@quantentunnel.de> wrote: > Hi, > > in Xnews, when you have multiple servers opened, these servers are > remembered when you leave Xnews with that windows still open. > > The xnews.ini gets an entry like this > > [Opened] > 1=S:MyServerNo1 > 2=S:MyOtherServer > Count=2 > > Is there a way to make this setting stick? When I leave Xnews with > another or no server opened these lines are overridden/deleted. > Making the Xnews.ini write-protected is not an option (won't work). > Any ideas? Xnews re-opens with whatever was open when you closed it, unless you close it with no servers open in which case it opens with your default server. Why would you want to close servers anyway? You can leave them open on those handy little tabs (Ctrl+Z toggles the tabs on and off). -- Martin S.
Re: [Xnews] Always open the same servers
Author: Ralf Hasse
Date: Fri, 12 Nov 2004 07:14
Date: Fri, 12 Nov 2004 07:14
18 lines
1799 bytes
1799 bytes
MartinS (me@my.place) wrote: >> Is there a way to make this setting stick? When I leave Xnews >> with another or no server opened these lines are >> overridden/deleted. Making the Xnews.ini write-protected is not >> an option (won't work). Any ideas? > > Why would you want to close servers anyway? You can leave them open > on those handy little tabs (Ctrl+Z toggles the tabs on and off). I know. It's a reflex :-) I once got used to close each server manually and no I can't get it out of my personal-fixed-cemented-and- paved-usage-profile. I guess I'll try the scripting that DC suggested, maybe with AutoIt. Thanks to both Ralf
Re: [Xnews] Always open the same servers
Author: Doc
Date: Fri, 12 Nov 2004 11:16
Date: Fri, 12 Nov 2004 11:16
30 lines
1748 bytes
1748 bytes
Ralf Hasse <expires_1Dez04@quantentunnel.de> wrote in news:Xns959E50BF28A15m7oy9x@dataport.de: > Hi, > > in Xnews, when you have multiple servers opened, these servers are > remembered when you leave Xnews with that windows still open. > > The xnews.ini gets an entry like this > > [Opened] > 1=S:MyServerNo1 > 2=S:MyOtherServer > Count=2 > > Is there a way to make this setting stick? When I leave Xnews with > another or no server opened these lines are overridden/deleted. > Making the Xnews.ini write-protected is not an option (won't work). > Any ideas? > > Ralf > Get your favourite Xnews.ini and copy it to another file like myXnews.ini. Then open Xnews with a batch file that copies myXnews.ini to Xnews.ini first. -- Adware/malware/spyware free since 1996, using IE and OE.
Re: [Xnews] Always open the same servers
Author: Ralf Hasse
Date: Fri, 12 Nov 2004 19:08
Date: Fri, 12 Nov 2004 19:08
22 lines
1815 bytes
1815 bytes
DC (dcmoose@myrealbox.com) wrote: > Maybe have a startup script to do a search and replace on that > block of text? I don't know how to do it, specifically, but it > might be something you can explore. Maybe drop in on comp.editors > and see what they can suggest. > > Post results if you get any. I just realized it with AutoIt (www.autoitscript.com) and it was easier as I thought. Here's the script I launch hourly: | IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "1", "S:Server 1" ) | IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "2", "S:Server 2" ) | IniDelete ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "3" ) | IniDelete ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "4" ) | IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "Count", "2" ) Ralf -- Luck can't last a lifetime unless you die young.
Re: [Xnews] Always open the same servers
Author: DC
Date: Fri, 12 Nov 2004 19:50
Date: Fri, 12 Nov 2004 19:50
27 lines
2207 bytes
2207 bytes
Ralf Hasse wrote: > DC (dcmoose@myrealbox.com) wrote: >> Maybe have a startup script to do a search and replace on that >> block of text? I don't know how to do it, specifically, but it >> might be something you can explore. Maybe drop in on comp.editors >> and see what they can suggest. >> Post results if you get any. > I just realized it with AutoIt (www.autoitscript.com) and it was easier > as I thought. Here's the script I launch hourly: >| IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "1", "S:Server 1" ) >| IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "2", "S:Server 2" ) >| IniDelete ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "3" ) >| IniDelete ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "4" ) >| IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "Count", "2" ) Cool. Does it overwrite or append? I'll assume the former, since you seem to indicate that it's working. -- DC Linux RU #1000111011000111001 Luck is when preparation meets opportunity. -- Neil Peart
Re: [Xnews] Always open the same servers
Author: Ralf Hasse
Date: Fri, 12 Nov 2004 21:09
Date: Fri, 12 Nov 2004 21:09
17 lines
1727 bytes
1727 bytes
DC (dcmoose@myrealbox.com) wrote: >>| IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "1", "S:Server >>| 1" ) IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "2", >>| "S:Server 2" ) IniDelete ( "D:\Tools2\Xnews\Xnews.ini", >>| "Opened", "3" ) IniDelete ( "D:\Tools2\Xnews\Xnews.ini", >>| "Opened", "4" ) IniWrite ( "D:\Tools2\Xnews\Xnews.ini", >>| "Opened", "Count", "2" ) > > Cool. Does it overwrite or append? I'll assume the former, since > you seem to indicate that it's working. Yes, the script is writing exact these entries. If they exist they will get replaced. That's why I have "3" and "4" in there. Even if I have four servers open Xnews will start with the two defined ones. Ralf
Re: [Xnews] Always open the same servers
Author: DC
Date: Sat, 13 Nov 2004 14:32
Date: Sat, 13 Nov 2004 14:32
24 lines
2153 bytes
2153 bytes
Ralf Hasse wrote: > DC (dcmoose@myrealbox.com) wrote: >>>| IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "1", "S:Server >>>| 1" ) IniWrite ( "D:\Tools2\Xnews\Xnews.ini", "Opened", "2", >>>| "S:Server 2" ) IniDelete ( "D:\Tools2\Xnews\Xnews.ini", >>>| "Opened", "3" ) IniDelete ( "D:\Tools2\Xnews\Xnews.ini", >>>| "Opened", "4" ) IniWrite ( "D:\Tools2\Xnews\Xnews.ini", >>>| "Opened", "Count", "2" ) >> Cool. Does it overwrite or append? I'll assume the former, since >> you seem to indicate that it's working. > Yes, the script is writing exact these entries. If they exist they will > get replaced. That's why I have "3" and "4" in there. Even if I have > four servers open Xnews will start with the two defined ones. Very good. }:O) -- DC Linux RU #1000111011000111001 Luck is when preparation meets opportunity. -- Neil Peart
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads