Jump to content
Sign in to follow this  
infernothebest

newsgroups

Recommended Posts

jvanegmond

Depends on what program?

Try it yourself first with the keyboard, then make a script that uses Send() a lot.

Share this post


Link to post
Share on other sites
jvanegmond

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
jvanegmond

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
infernothebest

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.