Solved

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

Posted on 2003-12-08
12
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month4 days, 15 hours left to enroll

635 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