Guest CaptainSquanto Posted July 5, 2005 Share Posted July 5, 2005 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 More sharing options...
GaryFrost Posted July 5, 2005 Share Posted July 5, 2005 Have you thought about Schedualed tasks for the running the script? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Guest CaptainSquanto Posted July 5, 2005 Share Posted July 5, 2005 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 More sharing options...
GaryFrost Posted July 5, 2005 Share Posted July 5, 2005 The other option would be TimerInit and TimerDiff SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Helge Posted July 5, 2005 Share Posted July 5, 2005 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) WEndUntested and written directly into my browser, but it should work..Not exactly certain about the ControlSend-part, as it`s been months sinceI last used that function, but if I remember it correctly it should work perfectly.. Link to comment Share on other sites More sharing options...
LxP Posted July 5, 2005 Share Posted July 5, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now