Jump to content

newsgroups


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...