Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Sockread: * /echo: line too long
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Sockread: * /echo: line too long
#
77284
30/03/04
11:45 PM
Joined:
Dec 2002
Posts: 15
Argentina
MadKairon
OP
Pikka bird
OP
MadKairon
Pikka bird
Joined:
Dec 2002
Posts: 15
Argentina
I'm using Sockets to retrieve info from a web dite. I use the following script to diplay the data on my status window:
on *:sockread:getfile: {
if ($sockerr > 0) return
:nextread
sockread %temp
if ($sockbr == 0) return
if (%temp) {
echo -a %temp
}
goto nextread
}
but I keep getting this error: * /echo: line too long (line 102, script4.ini)
can anybody give me a hand to solve this please?
Copy Link to Clipboard
Re: Sockread: * /echo: line too long
#
77285
31/03/04
12:15 AM
Joined:
Dec 2002
Posts: 1,541
state of confusion
L
landonsandor
Hoopy frood
landonsandor
Hoopy frood
L
Joined:
Dec 2002
Posts: 1,541
state of confusion
What does %temp hold? My guess is that %temp is too long to echo
Those who fail history are doomed to repeat it
Copy Link to Clipboard
Re: Sockread: * /echo: line too long
#
77286
31/03/04
01:36 AM
Joined:
Dec 2002
Posts: 15
Argentina
MadKairon
OP
Pikka bird
OP
MadKairon
Pikka bird
Joined:
Dec 2002
Posts: 15
Argentina
/me nodnods
exactly, so, how can I echo it?
Copy Link to Clipboard
Re: Sockread: * /echo: line too long
#
77287
31/03/04
02:41 AM
Joined:
Dec 2002
Posts: 1,541
state of confusion
L
landonsandor
Hoopy frood
landonsandor
Hoopy frood
L
Joined:
Dec 2002
Posts: 1,541
state of confusion
If the var is too long, you cant. Shorten the variable or break it up OR use another method for data storage
Those who fail history are doomed to repeat it
Copy Link to Clipboard
Re: Sockread: * /echo: line too long
#
77288
31/03/04
02:46 AM
Joined:
Dec 2002
Posts: 1,922
O
Online
Hoopy frood
Online
Hoopy frood
O
Joined:
Dec 2002
Posts: 1,922
var %var
sockread %var
echo -a * $mid(%var,1,900)
if $mid(%var,901) { echo -a * $ifmatch }
-or-
sockread 900 &var
echo -a * $bvar(&var,1-).text
(&var is a
binary variable
- see
/help /sockread
and
/help binary files
)
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage