egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search Actual binds

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
SomeGuy
Voice


Joined: 01 May 2004
Posts: 13

PostPosted: Thu Apr 17, 2008 2:34 pm    Post subject: Search Actual binds Reply with quote

Is it possible to write a function that actually searches which binds are actually active?

For example, I am making a dynamic command list, I've got everything covered, except I haven't figured out a way to actually check and see if the bind exists, and if so, unbind, or vice versa.

I've read through the docs and can't seem to find anything about this specifically, unless I'm missing something.

If someone can guide me in the right direction it would be much appreciated.

Thanks
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Apr 17, 2008 4:48 pm    Post subject: Reply with quote

From Tcl-commands.doc:
Quote:
binds [type/mask]
Returns: a list of Tcl binds, each item in the list is a sublist of
five elements:
{<type> <flags> <name> <hits> <proc>}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
SomeGuy
Voice


Joined: 01 May 2004
Posts: 13

PostPosted: Thu Apr 17, 2008 6:21 pm    Post subject: Reply with quote

Lol, duh, yea I'm dumb. I use .binds in the console all the time.

I've already wrote my functions, they work great.

Thanks for the second eye ;p
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber