Jump to content

Setting timed... things..


Guest CaptainSquanto
 Share

Recommended Posts

Guest CaptainSquanto

Man.. I just picked up AutoIt. I'm more into the hardware aspect of computers, so pardon my lack of technical software knowledge (as well as a vocabulary).

Basically, I'm trying to create a script that will send a message in my own IRC channel in timed intervals (say, every hour) to remind people about plans and work we have to do, or a simple "you guys are doing great - keep it up" type of message.

I've created a script that will wait for the window to be brought up, then it will enter the text and send it. But how can I get it to repeat itself every so often???

Thanks!

Link to comment
Share on other sites

Guest CaptainSquanto

not a bad idea, the thought crossed my mind... but how much more am i really learning if i just take that easy road? in the meantime, i suppose i'll have to.

i'm running low on caffeine and the sun's coming up anyways.

Link to comment
Share on other sites

The best thing to do is probably to use a IRC-client with built-in scripting-abilites,

but my experience there is very limited. The only one I know of is mIRC...

There is a program called WinBot which is pretty cool, but that`s not exactly a client...

Anyway, if you still like to use the AutoIt-method, what about a simple loop... ?

The example below is extremely basic, but it does exactly what you asked for..

While 1
   Sleep(1000 * 60 * 60)
   ControlSend("Window-title","","Input1", "Keep it up !{ENTER}",0)
WEnd

Untested and written directly into my browser, but it should work..

Not exactly certain about the ControlSend-part, as it`s been months since

I last used that function, but if I remember it correctly it should work perfectly..

Link to comment
Share on other sites

I've created a script that will wait for the window to be brought up, then it will enter the text and send it.  But how can I get it to repeat itself every so often???

<{POST_SNAPBACK}>

You could convert your code into a function and then use the AdLibEnable() command to call it at a specific interval.

Regards,

Alex Peters

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...