quote:
Originally posted by cloudhunter
Unfortuneately, it seems like it can't within the scripting system As it doesn't register any events apart from the built in one. I've researched it myself, but with no luck.
Cloudy
It can, and here's how. Add this format for a variable to your code somewhere (outside other functions):
code:
var Clicked = function(){
function agent::Click(dwCharID,fwKeys,x,y){
MsgPlus.DisplayToast('Clicked','You clicked Merlin!');
}
}
Assuming your ActiveXObject("Agent.Control.1") is called "agent". Then when you declare the agent (eg. in initialize) add "Clicked();"
Tested and working with that script that made him say what contacts said.
EDIT: I know this from catching events in iTunes, for iTunes+... was a pain!