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 

Passing variables into imdb script?

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


Joined: 09 Apr 2006
Posts: 1

PostPosted: Sun Apr 09, 2006 2:56 pm    Post subject: Passing variables into imdb script? Reply with quote

I have one of the imdb scripts from this site working fine on my eggdrop.

What i want to do is pass the name of a movie from a variable from another proc to the imdb script and have it use this movie.

How can i achieve this? Im pretty new at tcl scripting but can pick things up pretty quick so where can i look for some help with this?

Which method should i use to do this?

To elaborate:

I have variable1 within procedure1 = with the value of "scream" (for example)

How can i pass this to the !imdb command/script?

Thanks

voo
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Apr 10, 2006 4:08 am    Post subject: Reply with quote

by examining the imdb script and integrating your proc within it
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Doa
Voice


Joined: 19 Nov 2005
Posts: 5
Location: Oostende/Belgium

PostPosted: Wed Apr 12, 2006 2:44 pm    Post subject: Reply with quote

make it global
for example:
Code:
proc blaat {n u h a} {
global pom
set pom "$n $a"
}

proc toem {} {
global pom
puts $pom
putlog "$pom"
}
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