Author Topic: ONQUERY question  (Read 3336 times)

X-Fe@R

  • Guest
ONQUERY question
« on: June 29, 2004, 06:49:14 AM »
hello Snerf,

My question is as

follow:

Users requested me to have a pop up whenever they receive a private message. There is something they always

asked me to change and I'm not sure if I'm able to do so in IceChat but you might point me out the direction. When they

have a PM, it flashes in the tray, but the icon is grey and hard to see... is there any way to change the icon? Also, is it

possible to make it flash more than 5 seconds.

ONQUERY question:

in the meantime I find a fix to the top

question above, I've done a sub that OnQuery, it sends a message box to the user.

[Pseudocode]
sub

OnQuery

MesBox "You got a PM from " & User & "with message" & Message

end sub

My question

is: Is there any way to validate if this is a new PM and not an existing user replying to a PM. For example, person A sends

me a PM. I get a pop up. But if he sends another PM, I don't want to have another pop up because I've already got it from

user A.

How could I code the If statement to do so?

thanks for your help!

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
ONQUERY question
« Reply #1 on: June 29, 2004, 10:12:17 AM »
Hi

IceChat does not keep track, in scripting, when the

ONQUERY event triggers, whether its for a new query or an existing one.

What I would do is this.

Make either a

variable that keeps track of all users that have sent a query, and then when the ONQUERY event triggers, check if that name

is already sent or not. Then with an alias reset the variable to blank when they return, or wish to "reset" it. You could add

the alias to a popuip menu or such.
The IceChat God