mIRC Home    About    Download    Register    News    Help

Print Thread
#260373 11/04/17 04:56 AM
Joined: Apr 2017
Posts: 1
J
J3doJd Offline OP
Mostly harmless
OP Offline
Mostly harmless
J
Joined: Apr 2017
Posts: 1
Is there a way to only send a message when a site updates from what it recently was?

for ex:

Code:
...
;;Site updates from one line of text to a different line of text
msg # new text from site
...

Joined: Jan 2017
Posts: 57
Babel fish
Offline
Babel fish
Joined: Jan 2017
Posts: 57
I believe that web sockets may help you. However, my knowledge on web sockets is limited, for it is a dark and mysterious magic.

If you could make a variable that stores whatever info you are looking at, you could grab new info every X seconds, and compare the two to check for change.

i.e.,

Code:
timerCheckWeb 0 X CheckTheWeb

alias CheckTheWeb {
  set %newInfo {web socket hullabaloo}
  if (%newInfo != %oldInfo) {
    echo New Info has Arrived: %newInfo
    set %oldInfo %newInfo
  }
}


This is how I would personally structure it, but as I said at the beginning, I have no idea how web sockets work. Best of luck to you, though. I have thoroughly enjoyed scripting in MSL.

I hope this helps!


Link Copied to Clipboard