Sign in to follow this  
Followers 0
infernothebest

newsgroups

10 posts in this topic

is there a way that i can keep my connection alive using autoit on my newsgroupsserver with username and password

Share this post


Link to post
Share on other sites



I just so happen to own a copy of Grabit myself. (lol)

Nothing tcp/ip involved probably. What connection do you want to keep open anyway? Want to reuse the sockets where you download in, because i think that's a option enabled by default. Or do you want to update the groups every so often?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Now you try to improve this, it's not some state-of-the-art code:

Opt("WinTitleMatchMode", 2)
$Title = "GrabIt 1.5.3"

HotKeySet("^x", "Stop")

While 1
    If WinActivate($Title) = 1 Then
        WinSetState($Title, "", @SW_MAXIMIZE)
        MouseClick("Left", 208,65)
        Sleep(60000)
    Else
        Sleep(1000)
    EndIf
WEnd

Func Stop()
    Exit
EndFunc

Edit: Press Ctrl + x to Stop

Edited by Manadar

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

i changed a little bit like i said but it need some things more.

is there a way that i can be done in background so the windows doenst have to be active

thx thx thx

Opt("WinTitleMatchMode", 2)
While 1
If WinExists ("GrabIt 1.6.2 Beta", "Thread #1 - Grabbing article from news.tweaknews.nl")Then
Sleep(1000)
Else
WinActivate("GrabIt 1.6.2 Beta") 
WinSetState("GrabIt 1.6.2 Beta", "", @SW_MAXIMIZE)
MouseClick("Left", 208,65)
Sleep(5000)
DirRemove("C:\Program Files\GrabIt\Cache\Articles", 1)
EndIf
WEnd
Edited by infernothebest

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