Solved

How do I Auto-fill a text box in a flash chat box in a browser control?

Posted on 2003-12-08
12
254 Views
Last Modified: 2007-12-19
Experts, I have a flash chat room on the web that is being embedded in my vb app via the browser control. Well, on the web, in order to enter emoticons, one must enter characters like :) for the smily, etc. In my vb app, I want to provide a pull-menu listing the emoticons; and when an emoticon is selected, automatically pluck the appropriate characters into the textbox for them. Do any of you experts know how this can be done? If so, please advise with full code sample, and I'll thank you kindly with 300 points. Thanks in advance!
0
Comment
Question by:John Account
  • 5
  • 4
  • 2
12 Comments
 
LVL 13

Accepted Solution

by:
crazyman earned 300 total points
ID: 9904227
flashPlayer.SetVariable "txtMyTextBox", ":o)"

http://www.devcity.net/forums/faq.asp?fid=36&cat=General#TID22129
0
 
LVL 13

Expert Comment

by:crazyman
ID: 9904229
flashPlayer.SetVariable "txtMyTextBox", ":o)"

http://www.devcity.net/forums/faq.asp?fid=36&cat=General#TID22129
0
 

Author Comment

by:John Account
ID: 9909342
Hmmmmmm...that's very interesting, thanks for sharing, crazyman. However, as my question stipulated, the flash file is contained in a browser control. You see, it's in a php page, so I need to be able to do this from within a browser control via the web page it is contained therein.  Got any insight regarding that?
0
 
LVL 13

Expert Comment

by:crazyman
ID: 9911178
maybe something like

Webbrowser1.document.all("flashplayername").setvariable "txtMyTextBox",":o)"

Only problem i can see though is that you probably want to append the text box not overwrite it...
0
 

Author Comment

by:John Account
ID: 9916396
By "flashplayername" do you mean the flash file name, like FlashPlayer.swf? Or do you mean an ID? Or something else???  Sorry if this sounds like a stupid question, but it just seems that your suggestion should work, yet it isn't. I've tried just about everything, with regard to what you suggested. Maybe you could elaborate???
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 13

Expert Comment

by:crazyman
ID: 9918775
Do you have the url of the web page your trying it on, if so i could try to get it working from that.
Or is it run local?
0
 

Author Comment

by:John Account
ID: 9918866
The url is http://www.lovelinepersonals.com/chat/chat.php, crazyman. I increased another 300 points to this question, for you if you can get it.  See, what I want to do is include icons at the bottom of the text box in the vb app, so that a person can click the icon and the appropriate value will be put in the flash textbox.  The variable name of the textbox in the flash is FlashRecTxtBox, same like the sample provided on that link you gave--i.e., TheflashPlayer.SetVariable "FlashRecTxtBox", txtVar.Text.  Thanks for your effort, crazyman.
0
 
LVL 13

Expert Comment

by:crazyman
ID: 9918994
I cannot go to that site because my firewall will not let me visit personal sites :o(

however i got it working on this site

CLICK command 1 then got down to the flash movie select yes from the drop down box then click command2 on your vb form

Private Sub Command1_Click()
    WebBrowser1.Navigate2 "http://www.scottmanning.com/archives/000391.php"
   
End Sub

Private Sub Command2_Click()
WebBrowser1.Document.embeds("dependent-dropdown").SetVariable "howmany", "10"

End Sub
0
 

Author Comment

by:John Account
ID: 9922743
It's giving me a Run-time error '91'; Object variable or With block variable not set.
0
 
LVL 27

Expert Comment

by:planocz
ID: 10234818
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from JohnLucio crazyman from 12/11/2003 comment
Award points to is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0
 
LVL 27

Expert Comment

by:planocz
ID: 10280047
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from JohnLucio crazyman from 12/11/2003 comment
Award points to crazyman is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now