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


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 2:29 am Post subject: can VDS do this??????? |
|
|
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 |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 4:36 am Post subject: ok |
|
|
ok great
what commands are need to do this? meaning what programming codes?
thanks |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Aug 01, 2002 5:04 am Post subject: |
|
|
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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 5:36 am Post subject: greaT |
|
|
but how can a refreash be added so the web txt file can be loaded like every 30's sec
and will this info BE displayed in the vds window and not i.e?
thanks |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 5:40 am Post subject: yes |
|
|
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 |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Aug 01, 2002 6:14 am Post subject: Textfile download example |
|
|
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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 2:06 pm Post subject: thanks |
|
|
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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Aug 01, 2002 4:34 pm Post subject: |
|
|
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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Aug 01, 2002 11:11 pm Post subject: ok |
|
|
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  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 2:33 am Post subject: Re: Textfile download example |
|
|
| 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 ...hummmm i will have to see what i can come up with...thanks for the start  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 3:07 am Post subject: darn :( |
|
|
it works with small text file but not with big ones... I just get a blank screen with my txt files  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 3:22 am Post subject: also to |
|
|
also to i see if the file is to big it crashs VDS  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Aug 02, 2002 4:27 am Post subject: |
|
|
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 |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Aug 02, 2002 5:04 am Post subject: hummmm |
|
|
| 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 ( 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 |
|
 |
|
|
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
|
|