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 1, 2  Next
 
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: Thu Aug 01, 2002 2:29 am    Post subject: can VDS do this??????? Reply with quote

hello all

i would like to make a vds program that would get info from a web site but the web server would not uses port 80 for this.and display that info in the VDS window and have the vds program refreash it like every 30 secs or so...how can this be done what all do i need to do this?


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


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

PostPosted: Thu Aug 01, 2002 3:33 am    Post subject: Reply with quote

You'll need to use an external DLL such as VDSIPP or VDSINET (from VDSDLL V2.7),
which are both freeware. Currently VDSIPP's functionality in general is more
advanced:

http://www.vdsworld.com/index.php?page=download&file=vdsipp.dll

http://www.vdsworld.com/index.php?page=download&file=vdsdll.dll
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: Thu Aug 01, 2002 4:36 am    Post subject: ok Reply with quote

ok great


what commands are need to do this? meaning what programming codes?

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


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

PostPosted: Thu Aug 01, 2002 5:04 am    Post subject: Reply with quote

The VDSWORLD Check-Up example I just posted in the Visual DialogScript 3 Source
Code section may be helpful to you. It shows how to download a small text-file,
although it uses the default port 80. I think you should be able to specify the URL
like the following to use a custom port: "http://www.yourserver.com:81/". Please
refer the helpfile included with PGWARE's VDSIPP first for more information

Tommy
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: Thu Aug 01, 2002 5:36 am    Post subject: greaT Reply with quote

but how can a refreash be added so the web txt file can be loaded like every 30's sec Smile


and will this info BE displayed in the vds window and not i.e?



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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Aug 01, 2002 5:40 am    Post subject: yes Reply with quote

i was looking at that code and it looks good but i need it to display the txt file info in the VDS window (if possible) becuause i don't want the url of the site to be display.....

thanks


can the refreash rate in that code be chnage to sec's?
Back to top
View user's profile Send private message
Tommy
Admin Team


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

PostPosted: Thu Aug 01, 2002 6:14 am    Post subject: Textfile download example Reply with quote

Please note that I didn't write the Check-Up script specifically for you. I thought it
might just have been useful anyway.

Please try this one which should do exactly what you want:

Code:

  %%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,EDIT,eText,8,8,272,176,,,MULTI
  DIALOG SHOW
  goto timer
:evloop
  wait event,%%interval
  goto @event()
:timer
  internet http,get,1,%%url
  rem an intermediate list is used to avoid a bug in the edit element if
  rem using certain file types.
  list create,1
  list assign,1,@internet(http,content,1)
  dialog set,eText,@text(1)
  list close,1
  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: Thu Aug 01, 2002 2:06 pm    Post subject: thanks Reply with quote

this will feed the info RIGHT to the VDS window correct? it looks like it would cuase i don't see a call to I.E in which case this is what i want. I'am see this right?


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


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Aug 01, 2002 4:34 pm    Post subject: Reply with quote

Yes, Tommy's code takes the info in the txt file and displays it in a multi-line edit box in a VDS window. It could also be displayed in a Text element on the dialog itself(Just so you know the edit box isn't all you can use).
I take it you haven't downloaded the trial version of VDS to try the code?

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Aug 01, 2002 11:11 pm    Post subject: ok Reply with quote

SnarlingSheep


no i haven't download it yet ( later tonight i'am going to) then i will give it a try... i haven't done programming in a long time....hopefully i will rember some of it Very Happy
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 2:33 am    Post subject: Re: Textfile download example Reply with quote

Tommy wrote:
Please note that I didn't write the Check-Up script specifically for you. I thought it
might just have been useful anyway.

Please try this one which should do exactly what you want:

Code:

  %%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,EDIT,eText,8,8,272,176,,,MULTI
  DIALOG SHOW
  goto timer
:evloop
  wait event,%%interval
  goto @event()
:timer
  internet http,get,1,%%url
  rem an intermediate list is used to avoid a bug in the edit element if
  rem using certain file types.
  list create,1
  list assign,1,@internet(http,content,1)
  dialog set,eText,@text(1)
  list close,1
  goto evloop
:close
  internet http,destroy,1
  exit



lol i like the msg.... hehheheh very nice but i forgot that my server web pages are password Sad ...hummmm i will have to see what i can come up with...thanks for the start Smile
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 3:07 am    Post subject: darn :( Reply with quote

it works with small text file but not with big ones... I just get a blank screen with my txt files Sad
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 3:22 am    Post subject: also to Reply with quote

also to i see if the file is to big it crashs VDS 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 4:27 am    Post subject: Reply with quote

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
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 5:04 am    Post subject: hummmm 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



yea i hate to it download the file Sad ( i think that is what you mean) then have the users open it? right that what you mean? this list control i will have to find out what that is...
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 1, 2  Next
Page 1 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