Highlight mIRC to iphone

By FordLawnmower on Jul 20, 2009

This script uses Prowls api to message your iphone when someone says your nickname in irc.
To use this script you will need to:

After you have successfully done all of this, you can just load the script; right click the screen and add your api key; Then just turn on the script.
Updated Added menu selection to activate only when you are marked as away.

The Prowl alias can be used for anything you want given the proper syntax.
Syntax: /Prowl apikey priority event-must-be-one-string text to send.

  • apikey is the key for the phone you are sending to. This doesn't have to by your key. If friends want to share api keys, they can send messages this way.
  • Priority must be a number between -2 and 2. -2 being least urgent and 2 being most urgent.
  • Event must be one continuos string. Use this to describe the comming text. Like Kicked.
  • Text to send. Can be any message up to 10000 characters. This is required.

If you are having problems with Prowl/Growl/Push, Post them here -->> http://forums.cocoaforge.com/viewforum.php?f=45 or look here for answers -->> https://prowl.weks.net/faq.php

I don't even have an iphone so please only post problems or questions directly related to the script.
You must already be able to recieve messages through the Prowl site before you can use this script.

;Prowl api iphone highlight script by Ford_Lawnmower irc.MindForge.org #USA-Chat
;This script was made at the request of Geekologist irc.WyldRyde.org
;Installation of OpenSSL is required to use Prowl api --->>  http://www.mirc.com/download/openssl-0.9.8k-setup.exe
;Install OpenSSL and then restart mIRC before using this script.
;You will also be prompted to accept or reject Prowl, as they do not have a SSL Certificate for some reason ;/
;To use this script, you will have to accept. 
;Help installing Prowl on your iphone and mac/pc is here -->>  https://prowl.weks.net/installation.php
;Register to use Prowl here --->>  https://prowl.weks.net/register.php
;To create an api key go here -->> https://prowl.weks.net/settings.php  <<---You must be registered and logged in.
;Your iphone or other device must be logged on to Prowl for this to work.
;Message limit is 1000 messages per hour!
;Alias Syntax /Prowl apikey priority event-must-be-one-string text to send.
alias Prowl {
  if ($2 !isnum -2-2) || (!$4) { echo -st Syntax is /Prowl apikey priority event-must-be-one-string text to send. -- Priority must be a number between -2 and 2. | return }
  sockopen -e prowl prowl.weks.net 443
  sockmark prowl $1 $2 $fixurl($+($network,-,$chan)) $fixurl($3) $fixurl($4-)
On *:sockopen:prowl:{
  tokenize 32 $sock($sockname).mark
  sockwrite -nt $sockname GET $+(/publicapi/add?apikey=,$1,&priority=,$2,&application=,$3,&event=,$4,&description=,$5-)
  sockwrite -n  $sockname Host: prowl.weks.net $+ $+($crlf,2)
On *:sockread:prowl:{
  if (!$sockerr) {
    var %prowl | sockread %prowl
    if (<success code isin %prowl) { echo -at 07Message sent Successfully!  | sockclose $sockname }
    if (<error code isin %prowl) { echo -at 04An error occurred. Your message was not sent! | sockclose $sockname }
#prowl on
On *:text:*:*:{
  if (%ProwlAwayOnly) && (!$away) { return }
  if ($istok($strip($1-),$me,32)) && (%Prowlapikey) {
    if ($timer($+(prowl,$nick,$network))) { return }
    .timer $+ $+(prowl,$nick,$network) 1 5 noop
    Prowl %prowlapikey 1 Highlight $nick said: $1-
#prowl end
menu status,channel {
  Prowl Highlight
  .Set api key: set %prowlapikey $$?"Enter Your Prowl API Key"
  .$iif(!%prowlapikey,$style(2),$iif($group(#prowl) == on,$iif((!%ProwlAwayOnly),$style(1)))) Prowl Highlight Always On:.enable #prowl | unset %ProwlAwayOnly
  .$iif(!%prowlapikey,$style(2),$iif(%ProwlAwayOnly == on,$style(1))) Prowl Highlight On Away Only:.enable #prowl | set %ProwlAwayOnly on
  .$iif($group(#prowl) == off,$style(1)) Prowl Hightlight Off:.disable #prowl | unset ProwlAwayOnly
alias -l fixurl return $regsubex($1-,/([^a-z0-9])/ig,% $+ $base($asc(\t),10,16,2))


Sign in to comment.
honk   -  Apr 09, 2016

Script isn't working anymore for 2-3 weeks now. It seems the prowl guys changed something on their backend in mid march according to their twitter page.
Does anyone have a solution ? Ford, could you please take a look at it ?

davehorse   -  Mar 23, 2012

@BigSteve I have managed to change it so it notifys an android device instead :) you need to install NMA (Notify My Android) on your device.

and change a couple of lines
Line 16 change to: sockopen -e prowl notifymyandroid.com 443
Line 21 change to: sockwrite -nt $sockname GET $+(/publicapi/notify?apikey=,$1,&priority=,$2,&application=,$3,&event=,$4,&description=,$5-)
Line 22 change to: sockwrite -n $sockname Host: notifymyandroid.com $+ $+($crlf,2)

and then you should be fine. you will need to register at notifymyandroid.com to get your api key

BigSteve   -  Mar 23, 2012

ford think you can do a notify to android ?

Bri1977   -  Mar 22, 2012

this would probably be the app you need for the android http://www.growlforwindows.com/gfw/forwarders/notifymyandroid FordLawnmower would probly need to rewrite/tweak the script for it tho, still no luck on the blackberry front, but i was thinking if you could maybe send the highlights by msn/windows live/gtalk, that would work for me, i could just set up a new account on my phone just for 'important' highlights

BigSteve   -  Mar 15, 2012

would love something like this for android :D, would be soo handy :p

davehorse   -  Mar 15, 2012

@FordLawnmower I have tweeked this script for my own personal highlight script. It does now utilize mirc.ini reading hte highlights section rather than just $me which is what i wanted. http://www.hawkee.com/phpBB2/viewtopic.php?p=117711#117711

What would be nice (I dont have a clue how to do it) is to add ability for Windows7, Android and iPhones using free apps from their app stores. with an option to select 1 or more of those.

FordLawnmower   -  Mar 14, 2012

@davehorse This script is pretty simple to edit but you would have to give me a better description of what you are trying to do.
@Bri1977 I don't know of a version of prowl for blackberry, but if you find something similar, I don't mind taking the time to try and put something together.

Bri1977   -  Mar 11, 2012

is there any way to use this on blackberry or is there a similair script for blackberry? from what i've read there's a prowl version for androids, but havn't found one for blackberry yet

davehorse   -  Mar 09, 2012

Love the script as I do most of them. but to make it perfect is there a way you can utilize the inbuilt mirc highlights?

FordLawnmower   -  Dec 07, 2009

Thanks Nuk3d :) I almost forgot about this script.

Nuk3d   -  Dec 07, 2009

nice script, didnt even know that was available lol

FordLawnmower   -  Jul 24, 2009

Yea this should work for it Jamiie, but you will need to install and setup Prowl/growl first. -->> https://prowl.weks.net/installation.php

Added a menu option to send messages only when you are marked as away.

Jamiie   -  Jul 24, 2009

Could this still be used with an iPod Touch 2nd gen? I have a few SMS apps on it.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.