Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Script ircle?

Script ircle?
Thread Tools
iMan_ca
Guest
Status:
Reply With Quote
Apr 27, 2000, 10:04 PM
 

Again I am asking for help, I hate being on this end of the boards

Is there a way to make an event in ircle to activate a custom script, say some one sends me a priv message that has "wake up" and this makes a script start up playing a sound file or something.
     
Junior Member
Join Date: Oct 1999
Location: Edmonton, Alberta, Canada
Status: Offline
Reply With Quote
Apr 28, 2000, 10:52 PM
 
yup there is...

you can do :

on privmsg(con, source, sourcehost, target, thestring)
tell application "IRC"
if thestring is "wake up" then
-- your code
display dialog "WAKE UP!!!
This Wake-UP message sent by:
" & source & "
(" & sourcehost & ")." buttons {"OK"} default button 1

tell application "IRC"
-- send a notice to the client that triggered the command
type "/notice " & source & space & "Sent message" in connection con
end tell
else
-- if you want to check for other text != "wake up" then enter it here
-- tell application "IRC"
-- send a notice to the client that triggered the command
-- type "/notice " & source & space & "Sent message" in connection con
-- end tell
end if
end tell
end privmsg
on load()
-- sends a local message, it is not transmitted to any server or person.
tell application "IRC" to echo "Wake-Up Loaded"
end load
on unload()
-- sends a local message, it is not transmitted to any server or person.
tell application "IRC" to echo "wake Up Unloaded"
end unload

hope this helps

------------------
PGP key: http://www.geocities.com/maccanada/pgpkey.html
-30-
-- An idea is salvation by imagination.
-- Frank Lloyd Wright
-- 30 --
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2