Solved

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

Posted on 2003-12-08
12
258 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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
 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 120
Add and format columns in vb6 7 55
Problem to With line 4 56
Excel Automation VBA 19 67
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

816 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

11 Experts available now in Live!

Get 1:1 Help Now