Jump to content

Recommended Posts

Posted (edited)

I think everything is working so far, hopefully I have it setup right where it reads new line every hour does it look like everythings code right?

ah shoot i fubard it somewhere

Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)

HotKeySet("{pause}", "Abort")
Dim $Ad,$IM,$IRC

$IRC = "mIRC"
$IM = "/echo : Test AD :| "
$file = FileOpen("ads.txt", 0)
$line = 1
$Ad = FileReadLine($file, $line)
$rest = 3600000 ; one hour

while 1=1
ControlSend($IRC, "", "Edit1", $IM & $Ad & "{Enter}{Enter}")
FileReadLine($file, $line + 1)
Sleep($rest)
wEnd

Func Abort()
    FileClose($file)
    Exit
EndFunc
Edited by Seagul

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
  • Recently Browsing   0 members

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