Something like the highlighting trick you just added

Posted by David Berthiaume on Sun 02 Jan 2005 08:41 AM — 8 posts, 34,006 views.

#0
Can you set it up so you can just highlight text, and then right click, and have an add trigger window pop up. Then you could add triggers almost on the fly without having to ctrl+shift+8, click add, and paste the line, and type in everything.

This way, we highlight what we want to match on, right click, add the trigger, type in the send box, click ok, and boom, all done.

(added as an after thought) Perhaps it could also do multi-line triggers... It can get confusing where to put the line break in and what not. If we just highlighted it in the output buffer, it would be fool proof.
Amended on Sun 02 Jan 2005 08:43 AM by David Berthiaume
USA #1
The highlight word thing is a trigger.

Just go to the trigger dialog and update it (to not highlight, change the trigger group), and then youll have a normal blank trigger.
Australia Forum Administrator #2
Quote:

Perhaps it could also do multi-line triggers... It can get confusing where to put the line break in and what not.


You have a bit of a point there. I have added a multi-line trigger generator into the next version.

However a simple trigger generator will not handle things like loops, which you would still need to do manually. By loops I mean things like matching on an inventory that has a variable number of items.
#3
I like it. However, I think you can even refine it a little more.

When you highlight some text, and click highlight word, or multiline trigger, it should open a trigger creation wizard. Perhaps 2-3 steps to complete the trigger.

Starts off with what you see now, then hit next, and it lets you enter what you want in the send to box, then hit next, lets you select all the flags and what not and the send to drop-down menu, then the last one would be name, group, script and what not.
USA #4
Well. As nice as a wizard would be, it adds more code to the client. Why not just have a "Edit after creation" option on the trigger generator, then have it automatically open the full editor window for that new trigger when you click OK. That way you don't have to hunt for the new trigger to try to edit it. I tried to find one recently, but I have a rediculous number of triggers, so it took me several scans through the list to realize it got a sequence of 90 and had /bblah/b, instead of what I actually expected. Having the option to automatically pop up the edit window for the trigger would have saved me 10-15 minutes of frustration and allowed me to adjust the triggers match text and other features more easilly.
Australia Forum Administrator #5
It is hard to do that because that window is a sub-window of the configuration tab control. Or even a sub-sub-window.
#6
Well, you have ctrl+shift+8 which pops open the Trigger sub-menu... I don't see that part being a problem.

Instead of opening directly to the trigger, the sub-sub-menu, what if it just highlighted the trigger you just created?

Or you could go back to the old style configuation menu style you had, I think back in like 2.15 or something... It was years ago. I remember when you changed it, I didn't like the new change... Man, that's really showing my years.
USA #7
Quote:
It is hard to do that because that window is a sub-window of the configuration tab control. Or even a sub-sub-window.


Harder than building an entire wizard? ;) But seriously, even opening the entire edit tree, as though you clicked the icon, but opening it to the new trigger would work. Your going to have a window splatted over top of the client anyway in either case, until you close the edit window.