Results 1 to 12 of 12

Thread: [RESOLVED] IDE mouse over variables tooltip

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Resolved [RESOLVED] IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:20 AM.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2017
    Posts
    380

    Re: IDE mouse over variables tooltip

    It appears to be just a regular, Unicode Tooltip control.


    Attached Files Attached Files

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:20 AM.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:20 AM.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:20 AM.

  6. #6
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    460

    Re: IDE mouse over variables tooltip

    I did something similar but with vb6\api calls

    On a timer:
    1. check if vb6.exe has the focus
    2. look for windows that have the tooltip class using enumWindows
    3. get contents of tooltip text and tooltip position
    4. analyze text to see if it matches the conversion criteria
    5. display a form that looks like a tooltip right next to the original with the converted values

    It works but having the timer and program always running is kinda cheesy and hooking seems to be the more elegant solution.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:20 AM.

  8. #8
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    460

    Re: IDE mouse over variables tooltip

    Quote Originally Posted by dz32 View Post
    cool, thats not a bad solution. Running that as an external app has the benefit of not impacting IDE stability at all ever.
    the approach I used was no fun to debug and had lots of quirks. If an unknown corner case comes up the IDE will crash
    and work could be lost.

    I would be interested in seeing your solution if you were up for sharing it. Would be a nice backup if this one has hidden bugs.
    Search for "your new text here" to see where to set your new caption. Apologies for the organization, I had to rip out a bunch of stuff but it should compile and work.

    tooltip_text.zip

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:19 AM.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: [RESOLVED] IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:19 AM.

  11. #11
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    460

    Re: [RESOLVED] IDE mouse over variables tooltip

    yeah, if you have common identifiers for various things it lets you do some quick lookups. I embedded a webbrowser and grid controls in mine to display various things.

    I'd really like a way to get the code under the mouse cursor when hovering over the ide. Our project has several languages and the code is littered with "label1. caption = lang(2556)" and I'd like to be able to hover over lang(2256) and display what is says in the extended tooltip.

    Right now, I am running OCR and constantly scanning the area around the mouse position looking for matches but it only works about half the time. The ocr has trouble with some letters and numbers at random times which makes it really frustrating to use.

    I also tried to read the caret location text from the panel in the IDE (eg "Ln 8512, Col 20"). This would let me click and then get the tooltip but could not read the text. I tried inspect but couldn't get the contents.

    I poked around some add-in documentation but it was sparse and I couldn't find much info.

    There has to be a way to get it, I just don't have have a lot of experience with hooking\api\lower level stuff to make it happen.

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,057

    Re: [RESOLVED] IDE mouse over variables tooltip

    [...]
    Last edited by dz32; Apr 26th, 2019 at 11:19 AM.

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