| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 5:40 am Post subject: |
|
|
| Tommy wrote: | To have it work with very large files, use the "internet http,download" command to
download to a file and then open that file. There may be a limit on the edit control.
If you encounter that, replace the edit control with a list control.
Tommy |
ahhh yea i don't want to have it download it and this list control i'am trying to find out what this is... and so far i'am not sure what it really does |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 5:52 am Post subject: hummmm |
|
|
yes i hate to have people download it and this list control i have been reading the read me but i can't follow it to well can someone explain it please
thanks |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 5:55 am Post subject: sorry |
|
|
sorry for the many post my pages where being cached  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 5:57 am Post subject: |
|
|
Try this one:
| Code: |
%%tempfile = @substr(@windir(T),1,-1)\vdsworld.tmp
%%url = http://www.vdsworld.com/world.txt
rem %%interval is in seconds
%%interval = 20
directory change,@path(%0)
external vdsipp.dll
internet http,create,1
internet http,threads,1,off
internet http,protocol,1,1
internet http,useragent,1,VDSWORLD
dialog CREATE,Textfile,-1,0,289,192
dialog ADD,LIST,lText,8,8,272,176
dialog SHOW
goto timer
:evloop
wait event,%%interval
goto @event()
:timer
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
goto evloop
:close
internet http,destroy,1
exit
|
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 6:14 am Post subject: hummmmm |
|
|
it still won't open this file up ...try it with that code
http://www.scdss.cjb.net/log42.txt
all i get is a blank screen  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 7:51 am Post subject: |
|
|
Works fine for me even though I'm simply using:
| Code: |
%%tempfile = @substr(@windir(T),1,-1)\vdsworld.tmp
%%url = http://www.scdss.cjb.net/log42.txt
rem %%interval is in seconds
%%interval = 20
directory change,@path(%0)
external vdsipp.dll
internet http,create,1
internet http,threads,1,off
internet http,protocol,1,1
internet http,useragent,1,VDSWORLD
DIALOG CREATE,Textfile,-1,0,529,329
DIALOG ADD,STYLE,sFont,Courier New,8,,,
DIALOG ADD,LIST,lText,8,8,512,312,,sFont
DIALOG SHOW
goto timer
:evloop
wait event,%%interval
goto @event()
:timer
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
goto evloop
:close
internet http,destroy,1
exit
|
Maybe you have a slow internet connection and it's taking a while? It'll be blank until
the file completely has been downloaded and the file is quite large. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 8:36 am Post subject: ahhh k |
|
|
i well have to try it again... i do know the window is to small so i'am going to try to added resize ( so the users can re-size it)...and i 'am to added some buttons to it to for other links ( i hope)
thanks for the help
p.s how long did it take intill you got info in the window? ho wmany secs about? |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 8:40 am Post subject: |
|
|
Oh I forgot to tell, I'm not sure if every VDS versions supports @WINDIR(T).
You may want to try to replace the line:
%%tempfile = @substr(@windir(T),1,-1)\vdsworld.tmp
With a different line containing the direct filename such as:
%%tempfile = C:\temp\vdsworld.tmp
Make sure that the path the file will be in preexists. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 8:57 am Post subject: ahhh k |
|
|
that helped but i see when it stores it to the temp file and the txt file change you don't see the change intill you exit it and re-start it the program...if you follow what i mean....also to any way to have it save passwords for a web site
thanks |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 9:08 am Post subject: |
|
|
I see there was a mistake in my code related to the temp dir. The script should
refresh the list box every 20 seconds (the 20 seconds only start counting after a
download is complete, not during the download).
You can use a HTTP username and password with code like this:
| Code: |
%%tempfile = @windir(T)
if @not(@equal(@strdel(@windir(T),1,-1),\))
%%tempfile = %%tempfile\
end
%%tempfile = %%tempfile"vdsworld.tmp"
%%url = http://www.scdss.cjb.net/log42.txt
%%username = myusername
%%password = mypassword
rem %%interval is in seconds
%%interval = 20
directory change,@path(%0)
external vdsipp.dll
internet http,create,1
internet http,threads,1,off
internet http,protocol,1,1
internet http,useragent,1,VDSWORLD
internet http,authenticate,1,%%username,%%password
DIALOG CREATE,Textfile,-1,0,529,329
DIALOG ADD,STYLE,sFont,Courier New,8,,,
DIALOG ADD,LIST,lText,8,8,512,312,,sFont
DIALOG SHOW
goto timer
:evloop
wait event,%%interval
goto @event()
:timer
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
goto evloop
:close
internet http,destroy,1
exit
|
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 9:25 am Post subject: thank-you very much |
|
|
thank thank very much
also to before i saw your post i added this to the old script | Code: | %%del = FILE DELETE, C:\temp\vdsworld.tmp
:timer
internet http,download,1,%%url,%%tempfile
list loadfile,lText,%%tempfile
FILE DELETE, C:\temp\vdsworld.tmp
goto evloop |
this seem to work to
thanks again for all your help |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|