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 


VDSWORLD Forum Checkup
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code
View previous topic :: View next topic  
Author Message
Tommy
Admin Team


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

PostPosted: Fri Aug 02, 2002 7:25 am    Post subject: VDSWORLD Forum Checkup Reply with quote

This is a program which checks the VDSWORLD forum for new posts and the main
site for updated downloadable files, similar to the older version posted in the
Visual DialogScript 3 source code section.

This new version 1.3 uses a different nicer way of displaying the update
notifications, much similar to the way MSN Messenger shows the online
notifications. It'll only work with VDS 4 and up though.

I'm not sure if the forum update notification would work with browsers other than
Internet Explorer. At least it won't work with browsers not supporting JavaScript.

Fixed a bug already (version 1.4), which caused 2 new windows to open
instead of one, and simplified some code.

Version 1.5 fixes a small mistake.

Version 1.6 uses LIST ADD to fill up the Interval list to avoid some problems. A
popup menu has been implemented which will appear on right-click, where the
choice is given to Check Now, show the Settings dialog or Close the script. After a
single left-click, the script will instantly check for new posts. The javascript code
hasn't been eliminated yet.

Here's another new version, 1.7, which uses Mac's simple but very effective idea to
open a new browser window. Hopefully it'll work with any browser.

I updated the code real quick to version 1.8 because I'm afraid otherwise it
wouldn't have worked with Netscape.

Version 2.0 contains some minor changes. It's now uploaded as a script at VDSWORLD:

http://www.vdsworld.com/index.php?page=download&file=checkup.dsc

A precompiled version including vdsrun40.dll is also available:

http://www.vdsworld.com/files/checkup.zip


Last edited by Tommy on Tue Aug 06, 2002 8:35 am; edited 5 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Fri Aug 02, 2002 2:16 pm    Post subject: Reply with quote

When i change the time interval the script crashes.

There are spaces after the numbers when adding them to the interval
combo box. When changing the interval, it also adds the space in
the registry and when getting the number it crashes because it
also sees the space. Know what i mean? Smile Anyway, I don't know
if that is from copying it or not. You may want to change the
LOADTEXT to LIST ADD.

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Fri Aug 02, 2002 2:24 pm    Post subject: Reply with quote

Chris & Tommy,

I came across the same error and fixed it by changing

Code:

:evloop
  wait event,@prod(%%interval,60)
  goto @event()


to

Code:

:evloop
  wait event,@fmul(%%interval,60)
  goto @event()


after that I no longer got the error when changing the interval.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Fri Aug 02, 2002 2:30 pm    Post subject: Reply with quote

I also added a popup menu when right clicking on the
tray icon. I added Check Now and Close. That way I can
check when I want instead of waiting. I'm impatient! Smile

I also changed:

Code:

%%link = "javascript:top.location.href='http://www.vdsworld.com/forum/viewtopic.php?t="%%topic"#"%%post"';"


to

Code:

          %%link = "http://www.vdsworld.com/forum/viewtopic.php?t="%%topic"#"%%post


because the first one didn't work for me.

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Fri Aug 02, 2002 2:36 pm    Post subject: Reply with quote

Chris,

Good idea. I'll have to add that in as well. Just a shame I can't get it to work from work (no socks proxy just https proxy) Crying or Very sad Impatience is a virtue Wink Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1711
Location: Space and Time

PostPosted: Fri Aug 02, 2002 2:43 pm    Post subject: Reply with quote

I just noticed your from Wilmington, DE. Your the closest VDS
user to me. I just go a soft warm feeling all over. Laughing

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Fri Aug 02, 2002 2:58 pm    Post subject: Reply with quote

Laughing Laughing Laughing Laughing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Tommy
Admin Team


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

PostPosted: Fri Aug 02, 2002 11:13 pm    Post subject: Reply with quote

You could safely remove the spaces. The forum software adds an additional space
at the end of every line.

I'll update the code to use LIST ADD and will add the popup menu like Chris
already did for himself. Wink

Anyone knows a way to open a webpage in a new window programmatically other
than using JavaScript? Maybe there's some kind of commandline switch to
iexplore.exe, although of course that wouldn't work with alternative drivers.

Thanks.

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Aug 02, 2002 11:22 pm    Post subject: Reply with quote

How about RUN (or SHELL OPEN) IEXPLORE.EXE with
the URL as a parameter?

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Aug 03, 2002 12:05 am    Post subject: Reply with quote

Hey Tommy,

I'm not exactly an internet wizard, but isn't there some
type of index file at the VDSworld forum that must be
modified with each new post?

Couldn't we just download that and compare it to a
previously downloaded copy to check for new posts?

Or is this such a stupid idea, ya can't stop laughin'... Confused

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Tommy
Admin Team


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

PostPosted: Sat Aug 03, 2002 12:16 am    Post subject: Reply with quote

The forum doesn't use a file to store the posts but rather uses a (MySQL)
database. The page my script is using is a little frontend to the database. Of
course it should be possible to make a similar page which would list all posts, not
just the newest one. I'll try to make that if you want to try to write a script around
it...

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Aug 03, 2002 12:25 am    Post subject: Reply with quote

Tommy,

I was just wondering about dloading and checking a status
file without using IE. Doesn't your current example depend
on cookie (or logon, etc.) info to see when an individual last
checked the forum?

I was thinking more of a list of files (or list of posts)...

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Tommy
Admin Team


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

PostPosted: Sat Aug 03, 2002 12:34 am    Post subject: Reply with quote

No, as mentioned in the post in the VDS 3 Source Code section the file
http://www.vdsworld.com/data.php is downloaded (while specifying "VDSWORLD
Forum Check-Up" as user agent). That will return the information:
<topic id of newest post>|<newest post id>|<newest file id>|<title of newest
file>|<author of newest file>
That information will be the same for every user trying to access the page, it'll just
check in the database for the latest post id (and topic id to which it belongs) and
will return that.

The check-up script just stores the last post id and as soon as the retrieved post id
differs from the stored id, the user is notified and the new post id is stored.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Aug 03, 2002 12:39 am    Post subject: Reply with quote

OK. Thanks Tommy,

I missed the VDS3 post... Embarassed

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Tommy
Admin Team


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

PostPosted: Sat Aug 03, 2002 2:20 am    Post subject: Reply with quote

Hey Mac,

I updated the online data.php script. You could use it as follows ("<", ">", "{" and
"}" as usual are special syntaxic characters and shouldn't be literally included):

http://www.vdsworld.com/data.php?request=posts{&date=1}{&mindate=<start date>}{&maxdate=<end date>}

Note: you must still make sure the user agent is set to "VDSWORLD Forum
Check-Up".

If you don't supply any of the optional values, all posts will be listed, one on each
line, like this:
<topic id>|<post id>
The posts will be ordered by post time, starting with the oldest post, not by edit
time!

If date=1 is specified, all posts will be listed like this:
<topic id>|<post id>|<post time>|<post edit time>
<post time> and <post edit time> are formatted like this:
yyyy-mm-dd hh:nn:ss
If the post was never re-edited, <post edit time> will be empty. If you won't be
using the dates, don't use this!

The optional "mindate" and "maxdate" parameters could be supplied to limit the
number of posts returned, which is recommended to keep both the user's and
server's bandwidth usage down as much as possible. Use the following date
format (a time cannot be supplied):
yyyy-mm-dd
The "maxdate" parameter usually wouldn't be very useful although the "mindate"
parameter will.

A practical example would be:

http://www.vdsworld.com/data.php?request=posts&date=1&mindate=2002-08-01

Hope this will be useful to you, Mac. Smile

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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