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 


Browser help :D

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Mon Jun 26, 2006 8:56 pm    Post subject: Browser help :D Reply with quote

Anyone have a way of making this code not stop the script while doing its thing?
I'm thinking that the script waits because the browser isn't done loading the page. Is this right?
Its fine this way, just a just a tad annoying
Code:

    # Gets username and password and creates the link
    # Loads the link into a hidden browser control
    # Gets source code of browser control
    # check if source to find if created or not created
    # reports it to the screen
    %%username = @dlgtext(usernameedit)
    %%password = @dlgtext(passwordedit)
    if @not(@null(%%username))
      if @not(@null(%%password))
      #took out link because its not my site to publish it.
        %%link = "http://DELETED/create.html?action=create&user="%%username"&pass="%%password
        dialog set,browser1,%%link
        list create,1
        list add,1,@dlgtext(browser1)
        if @match(1,"Wrong login")
          dialog set,accountcreationtext,Account Already Taken.@cr()Please try a new one
        elsif @match(1,"Account created for user:")
          dialog set,accountcreationtext,Account Created Successfully
        end
        list clear,1
        list close,1
      else
        Warn "You must have a password."
      end
    else
      Warn "You must have a username."
    end
  end

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Skit3000
Admin Team


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

PostPosted: Tue Jun 27, 2006 8:12 am    Post subject: Reply with quote

You can look at this topic to see which commands and functions are supported by the browser element Smile

http://forum.vdsworld.com/viewtopic.php?p=20095#20095

Try putting this after your "dialog set,browser1,%%link" line:

Code:
while @browser(browser1,busy)
  wait 0.1
wend


This way, your script will stop executing until the page is completely loaded Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Tue Jun 27, 2006 12:18 pm    Post subject: Reply with quote

I was wanting it NOT to stop at all during this time.. but this code can actually accomplish this i think with a timer Very Happy

and thanks for that browser link Very Happy

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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