Results 1 to 3 of 3

Thread: MSAgent

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Chennai , India
    Posts
    44

    Post

    I have this code:
    Code:
    Text1.Visible = False
    Genie.Show
    Genie.Play "Greet"
    Genie.Speak "Please Enter Your NAme"
    Text1.Visible = True
    So the text1 is supposed to be visible onlay after the character has done all the actions.But instead,text1 becomes visible and then the character does the actions.Can somebody help me with this?
    Rabin
    Windows : Visual Basic 6 Enterprise / 3.0 (16-bit)
    DOS : QBasic 4.5 , Visual Basic For DOS
    Web : HTML , VBScript , PHP (Learning)

  2. #2
    Guest
    Try a doevents after you set the visible prop to false.

  3. #3
    Guest
    Then I think one of those lines of code is asynchronous. This word gets mentioned in the MSDN and help files quite abit, meaning that VB might not actually wait for the action to finish before moving on, like the shell function. Try using Play and Greet individually to see if they are both asynchronous or just one of them.

    Sunny

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width