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 


New Browser Window
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
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Feb 07, 2003 4:05 pm    Post subject: Reply with quote

Skit3000 wrote:
You can also take a look into the Check-up tool code... Or was that what you mentioned, Dr.Dread?


He-he. I didn't remember that something like that was in the forum checker. It seems that
I came up with pretty much the same except that the whole thing is done in just a few lines. Easier to read... Wink

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing


Last edited by Dr. Dread on Fri Feb 07, 2003 8:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Feb 07, 2003 4:19 pm    Post subject: Reply with quote

Well, I don't know how the code of the Check-up tool looks. I only knew that it opens a new window when you click on it... Wink
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


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

PostPosted: Fri Feb 07, 2003 8:37 pm    Post subject: Reply with quote

For Windows 95 I had to remove the @chr(34)s on each side
of %%EXE in the SHELL OPEN command... Wink
Code:

OPTION FIELDSEP, @CHR(34)
%%browser = @regread(ROOT,http\shell\open\command)
PARSE "%%EXE",%%browser
SHELL OPEN, %%EXE, http://www.google.com

Nice code Dread. Smile

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
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Feb 08, 2003 8:32 am    Post subject: Reply with quote

Mac wrote:
For Windows 95 I had to remove the @chr(34)s on each side
of %%EXE in the SHELL OPEN command... Wink


Of course you're right - they shouldn't be there but I had them in because I tried using the
RUN command at first and then they are necessary if there are spaces in the path. But I
simply forgot to remove them for the SHELL command. However, they don't seem to
be significant on my XP box here.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Tommy
Admin Team


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

PostPosted: Sat Feb 08, 2003 11:11 pm    Post subject: Reply with quote

This is the code I'm using in the Checkup tool. Of course it isn't very clear...

Code:

:newbrowserwindow
  %%filename = @regread(root,http\shell\open\command,)
  if %%filename
    gosub parsefilename
    run @shortname(%%filename1) %%link
  end
  exit
:parsefilename
  %i = 0
  %q =
  repeat
    %i = @succ(%i)
    %c = @substr(%%filename,%i)
    if @equal(%c,@chr(34))
      if %q
        %q = 2
      else
        %q = 1
      end
    else
      if @not(%q)
        if @equal(%c," ")
          %q = 3
        end
      end
    end
  until @equal(%i,@len(%%filename))@equal(%q,2)@equal(%q,3)
  if @equal(%q,3)
    %%filename1 = @substr(%%filename,1,@pred(%i))
  else
    if @equal(%q,2)
      %%filename1 = @substr(%%filename,2,@pred(%i))
    else
      %%filename1 = %%filename
    end
  end
  exit



This code should take into account double quotes which are being used in the registry
string and spaces which are being used in the browser's file path.
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 -> 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