Results 1 to 22 of 22

Thread: [RESOLVED] jim need your help

  1. #1

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Resolved [RESOLVED] jim need your help

    here is the image of what i extracted from other project source i found in my folders

    [IMG][/IMG]



    my chat client uses webbrowser as chat window.

    when we change font styles in combo the symbols change i wish to add them symbols along my chat text in my chat client but issue is the get seens as regular text such as abcd or numbers 1234 dont show symbols in chat window.


    how do i process them to show icon in my chat windows .


    this is how i send message out via client
    TxtTattoo is the textbox that has symbols.


    strOutput = strUserName & TxtTattoo & ": " & strMessage
    ProcessHTML "<font size=" & "2", strOutput, Web


    i think before i send out message they need to be converted am not sure need your help in this project is below attachment

    i just look at it now it is font style , webdings and webding and symbols i want to send
    Attached Files Attached Files
    Last edited by ladoo; Jan 12th, 2013 at 07:23 PM.

  2. #2

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    when i type in txtatoo how do i get that special character value to text2

    these are the vales i want in text2 when i type letters or numbers in txtatoo

    Code:
    & #1769;
    & #9824;
    & #9827;
    & #9829;
    & #9830;
    & #9786;
    & #9787;
    & #9788;
    & #9792;
    & #9794;
    &  #9834;
    & #9835;
    & #9840;
    & #9841;
    & #9617;
    & #9618;
    & #9650;
    & #9658;
    & #9660;
    & #9668;
    & #2768;
    & #1757;
    & #1758;
    &reg;
    am not sure if these are hex values converted from letters

  3. #3
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    I have never tried to display those special symbols on a webbrowser. Those symbols are from special font sets and are displayed when you type in the letter or number for that font.

    Have you tried to change fonts for the browser? I think there is a <font.....> HTML tag. Try that. Like <font = "windings...>


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  4. #4

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    i understand what i need

    here is the test code html
    Code:
    <font face="WEBDINGS">&hearts;
    i need something in vb6 to convert our keyboard keys to html values like
    & #1758;

  5. #5
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    This works

    WebBrowser1.document.write "<font face='Wingdings'>ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"

    All you need to do is to figure out what characters you need to show the symbols you want to display

    I tried all characters for Wingding but none of them were like what you showed in your 1st post.

    Also, did you know that you can create your own fonts and add them to the system? Of course, your clients would also have to have this home-made font set.

    The image shows all characters on a WebBrowser for Wingdings that I have
    Attached Images Attached Images  
    Last edited by jmsrickland; Jan 12th, 2013 at 02:51 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  6. #6

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    just wat i wanted thanks jim sir respect
    Last edited by ladoo; Jan 12th, 2013 at 03:17 PM.

  7. #7

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    how do i send 1 icon out with message ?
    Last edited by ladoo; Jan 12th, 2013 at 03:33 PM.

  8. #8
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    For additional symbols you need to also do all characters, not just keyboard characters. Like Chr(0) to Chr(255) and as I think you already know there is Wingdings2 and Wingdings3


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  9. #9

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    yes am aware of webdings2 and webdings3 , jim how do i send 1 icon please help


    this is my client message send code
    Code:
    strOutput = strUserName & WebBrowser1 & ": " & strMessage   
    ProcessHTML "<font size=" & "2", strOutput, Web
    i tried this above its not sending icon with it


    this is the code that injects icon to webbrowser1
    Code:
    WebBrowser1.document.write "<font face='Wingdings'>H"

  10. #10
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    Try adding & ">"


    Quote Originally Posted by ladoo View Post
    yes am aware of webdings2 and webdings3 , jim how do i send 1 icon please help


    this is my client message send code
    Code:
    strOutput = strUserName & WebBrowser1 & ": " & strMessage   
    ProcessHTML "<font size=" & "2" & ">", strOutput, Web
    i tried this above its not sending icon with it


    this is the code that injects icon to webbrowser1
    Code:
    WebBrowser1.document.write "<font face='Wingdings'>H"


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  11. #11

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    this isnt helping cannot add icon along with message please help

  12. #12

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    1: how do i move WebBrowser1.document.write "<font face='Wingdings'>H" to webbrowser2

  13. #13
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    I quess I don't understand your problem. When I use this:

    WebBrowser1.document.write "<font face='Wingdings'>H"

    it prints a hand with fore-finger pointing down on the WebBrowser

    As far as below goes:

    strOutput = strUserName & WebBrowser1 & ": " & strMessage
    ProcessHTML "<font size=" & "2" & ">", strOutput, Web

    I don't know what is the the variables and I don't understand why you are sending WebBrowser1 as part of the string


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  14. #14

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    webbrowser1 holds the icon right ? i want o send that icon along my message

  15. #15
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    Quote Originally Posted by ladoo View Post
    1: how do i move WebBrowser1.document.write "<font face='Wingdings'>H" to webbrowser2
    Don't know what you mean by 'move' to webbrowser2. Why wouldn't you just write to webbrowser2


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  16. #16

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    omg i done it hahhahahhahahhhah omg

    let me show u picture yesssssssssssssssssssssssssssssssssssssss hahhah

  17. #17
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    Quote Originally Posted by ladoo View Post
    webbrowser1 holds the icon right ? i want o send that icon along my message
    WebBrowser1.document.write "<font face = 'Tahoma'>Hello, ladoo, how are you doing</font><font size=9 face='Wingdings'>H</font><font face = 'Tahoma'>what are you doing</font>"

    Or, do you mean this:

    "Hello, ladoo, how are you<img src = 'http://<----URL--->'>"
    Last edited by jmsrickland; Jan 12th, 2013 at 07:01 PM.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  18. #18

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    omg i done it hahhahahhahahhhah omg
    now all i need to do is type alphabets or numerics yes thanks jim for your help here look at it


    this isssue i found is in module when proccess html was called the process html area has a replace code like this

    Code:
    If InStr(strText, "Wingdings") Then strText = Replace(strText, "Wingdings", "arial")
    Code:
     If InStr(strText, "Webdings") Then strText = Replace(strText, "Webdings", "arial")
    changed to
    Code:
    If InStr(strText, "Wingdings") Then strText = Replace(strText, "Wingdings", "Wingdings")
    Code:
     If InStr(strText, "Webdings") Then strText = Replace(strText, "Webdings", "Webdings")
    and now fine
    Last edited by ladoo; Jan 12th, 2013 at 07:22 PM.

  19. #19
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: jim need your help

    Well, that's what I showed you in post 17


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  20. #20

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: jim need your help

    thanks allot jim , your help is always appreciated no matter what

  21. #21
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: [RESOLVED] jim need your help

    Duh, why do you replace Wingdings with Wingdings?

    Code:
    If InStr(strText, "Wingdings") Then strText = Replace(strText, "Wingdings", "Wingdings")


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  22. #22

    Thread Starter
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: [RESOLVED] jim need your help

    yeh i disabled it this module was stripped out of some other source so now i have disabled this line, i didnt addd that line this was the line that gave me problems adding the webdings after i removed this it worked

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