Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1473 ${title} is not working properly - comes like "CompatWindow"

1.1
open
nobody
none
5
2014-04-07
2013-03-07
Dima
No

it looks like window title is not capturing properly: it comes like "CompatWindow" if I take a region (inside a window) or full window, and it comes like "Greenshot" if I take a full screen (that one I would suppose is fine).
I tried versions 1.0.6 and 1.1.0 build 2515 (64 bit) - same result.

Discussion

  • Robin Krom
    Robin Krom
    2013-03-07

    Hi, you are getting "CompatWindow" as title on every capture? That is weird, there are no other reports of such a problem. Where do you see this title, in the editor or filename? What destination do you use? What version of Windows and .NET are you using?

    Best wishes,
    Robin

     
    • Dima
      Dima
      2013-03-07

      it is on every single capture. Interesting thing is that it used to work (I was getting a correct window name), but recently I start getting this "CompatWindow".
      .NET: I have the latest v4.0.30319
      What I do is: I take a screenshot and upload it to flickr. You can look yourself as picture names: it used to work, and then it stopped:
      http://www.flickr.com/photos/93638483@N06/page2/

      Also, if I save a screenshot to my PC, I see also "CompatWindow" in a file name.

      Dima

       
  • Robin Krom
    Robin Krom
    2013-03-07

    Hmmm, weird, just to make sure we are at the same level... This CompatWindow is also in the title if you use Alt-PrntScrn (Window capture)? You are not using the interactive window capture, this is the one where you can select a window by moving the mouse on one and it is shown green. (PrntScrn followed by space)?

    On a side note: you will like the "speech bubble" which is planned for 1.2, as this does what you are doing with a box and arrow right now.

     
    • Dima
      Dima
      2013-03-08

      it is correct: on Alt+PrintScreen - gives me "Compatwindow".

       
  • Robin Krom
    Robin Krom
    2013-03-07

    If that a special program you are capturing?

    Btw. Did you read the link I posted, especially the entry called "Most Helpful Reply".

    It said: "
    1. Right-click on the desktop.
    2. Click on Personalization at the bottom of the menu
    3. Click on Window Color at bottom.
    4. Click on the color option that has a COLOR FAN in it, this is the AUTOMATIC option.
    5. Voila! That should stop the annoying empty taskbar programs from popping up.
    "

     
    • Dima
      Dima
      2013-03-08

      I tried - the same result: "CompatWindow"

       
  • Robin Krom
    Robin Krom
    2013-03-07

    And another question, are you running the other application in compatibility modus?

     
    • Dima
      Dima
      2013-03-08

      nope. No applications in compatibility mode. If you looked at my screenshots - it was getting it right, until some moment that it start giving "CompatWindow"

       
  • Dima
    Dima
    2013-03-08

    I think this might be a reason: let's say I have a windows with child windows. I'm making a screenshot of a child window that does not have a caption. If text of a child caption is empty, do you find a parent window caption text? You can see that it worked before just fine until some kind of update that stopped it.
    I also checked getting window names using spy++: it captures window names correctly, exactly like I would expect it. IMHO problem is not in the OS, or color schemes; it looks like it is in the algorithm.

    Technically, I can run it via VisualStudio to see what is going on exactly if I get a source code and a place where to put break point.

     
  • Robin Krom
    Robin Krom
    2013-03-08

    Greenshot actually always takes the title of the parent window, if the window has a parent.

     
  • Robin Krom
    Robin Krom
    2013-03-08

    I'm really curious what could be wrong, I really wouldn't have a clue what could cause all captures (of every application) to have CompatWindow.

    The code for this part is here: https://sourceforge.net/p/greenshot/code/2527/tree/trunk/GreenshotPlugin/Core/WindowsHelper.cs GetWindowText is the function which gets the title of the window.

    You can find everything in our repository, but I don't think it's so easy to get started...

     
  • Robin Krom
    Robin Krom
    2013-03-28

    Just wanted to give you an update... I really don't have a clue what might be going on.
    I will try to reproduce it on my Windows 8 PC this weekend.

     
  • Dima
    Dima
    2013-03-28

    Hi,
    I've got a new PC with windows 8 - and it seems to be working there. But not on the old one (upgrade from Windows 7) - problem still persists (as I said, SPY++ showed correct results). I looked at the code - hard to tell as I have not gotten a whole solution to compile, but code looks all right to me. By any chance, do you have a simple test to check code for text capture even if it would capture only at specific region, so I can test it on dual monitor (I have 2 monitors).

     
  • Robin Krom
    Robin Krom
    2013-04-02

    Hi Dima,

    can you try to explain what test you want, as I have a hard time understanding it.
    Do you want a simple exe which takes the title from a window which is in a certain region?

    Best wishes,
    Robin

     
  • Dima
    Dima
    2013-04-02

    Hi, Robin!

    yeah, a simple test with the same logic that you are using. It can be simple exe or better yet a source as a solution that I can run under debugger so I can see where the problem is.

    my email: dpolyakov at gmail dot com

    I really like greenshot!
    Dima

    P.S. (might be off topic here, but what would be a cool feature is ability to change taken screenshot image size in the image editor, let's say like it is in mspaint. So, if I take a relatively small screenshot I still will be able to put lines, text boxes and so on).

     
  • Robin Krom
    Robin Krom
    2013-04-02

    Hi Dima,

    Will see what I can whip up, shouldn't be too hard but as we are in the middle of finishing our release candidates I can't say when.

    About your feature request, it's already requested and I already build the code for it... Just didn't have time to build it in the GUI.

    Best wishes,
    Robin

     
  • mirza
    mirza
    2014-04-07

    Nice to know that "Speech bubbles" are planned, we will like it too!