forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


can VDS do this???????
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 5:40 am    Post subject: Reply with quote

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 Sad 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
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 5:52 am    Post subject: hummmm Reply with quote

yes i hate to have people download it Sad and this list control i have been reading the read me but i can't follow it to well Sad can someone explain it please


thanks
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 5:55 am    Post subject: sorry Reply with quote

sorry for the many post my pages where being cached Sad
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 6:14 am    Post subject: hummmmm Reply with quote

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 Sad
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 8:36 am    Post subject: ahhh k Reply with quote

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) Smile


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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 8:57 am    Post subject: ahhh k Reply with quote

that helped Smile 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 Smile



thanks
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 9:25 am    Post subject: thank-you very much Reply with quote

thank thank very much Smile


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 Smile

thanks again for all your help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group