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 

ASCII Convertion

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


Joined: 28 Apr 2007
Posts: 31
Location: Bat Yam, Israel

PostPosted: Tue Nov 06, 2007 12:44 pm    Post subject: ASCII Convertion Reply with quote

I got a little question, how do I convert from text to ASCII?
Meaning, i want to show the ascii 9 in the end of a certain message.
In mIRCScript, it's $asc(9) or $chr(9), and I need to find the Tcl equivalent. Thanks in advance!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 06, 2007 1:43 pm    Post subject: Reply with quote

Check out the "scan" and "format" commands. They should be able to perform those tasks, and more.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
dokueki
Voice


Joined: 28 Apr 2007
Posts: 31
Location: Bat Yam, Israel

PostPosted: Tue Nov 06, 2007 1:56 pm    Post subject: Reply with quote

EDIT: Alright, got it Very Happy But it strips the character I need :<
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 06, 2007 5:06 pm    Post subject: Reply with quote

Strips? huh?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
dokueki
Voice


Joined: 28 Apr 2007
Posts: 31
Location: Bat Yam, Israel

PostPosted: Tue Nov 06, 2007 5:10 pm    Post subject: Reply with quote

It just... Doesn't let it appear in the message Razz I mean, the ASCII character 9 is a blank character, but it triggers a script in mIRCSCript, and well, when I put it in my Eggbot, it doesn't trigger that script for other people when it needs to, which got me to the conclusion that it doesn't make it appear in the message, I'm guessing because it's either an irregular character or because 'tis a blank character. :p
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 06, 2007 5:23 pm    Post subject: Reply with quote

If it's always ascii -9, you could try something like this (or however the message should be constructed, \x09 will be replaced with the specified character):
Code:
puthelp "PRIVMSG yournick :blah \x09 bleh"

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Nov 07, 2007 4:28 pm    Post subject: Reply with quote

it's the tab char, can't you try to match \t ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Nov 07, 2007 5:54 pm    Post subject: Reply with quote

Read here about backslash substitution:
http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M15
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