Giter Club home page Giter Club logo

Comments (21)

arciisine avatar arciisine commented on September 25, 2024 1

Still working on it. I've confirmed that ffmpeg is not DPI aware. I'm working on this downstream. First step will be arciisine/win-info#1, and then arciisine/screen-recorder#3. After that I can update the plugin.

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024 1

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

@arciisine in vscode console I have devicePixelRatio 2.5

image

and for windows I have default scaling (250%)

image

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

This seems to point that I might need to have screen dpi awareness and do some multiplication on the coordinate system.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/948ec624-a506-45f7-a347-3c166ba34cea/getwindowrect-on-windows-10?forum=vcgeneral.

I might be able to provide a test build this weekend if you have the time to verify @lifeart.

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

Sure, thank you!

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart Okay, so modified the dependent libraries, and I've published a new version (0.1.9). Tested it on windows with multiple deskop scaling factors, and everything looked to be okay.

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

@arciisine getting
image

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart What version are you running? I remember running into this with some oddness in the JSON output of window information. This was resolved in later builds.

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

It’s 0.1.9 according to vscode

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

So, I just pulled up 0.1.9 on my windows 10 VM and it appears to be working. If I provide a simple repository, would you be able to run it and provide some debug information? It would amount to running @arcsine/win-info commands to validate the bounds detection, as I believe this is where you are experiencing the problem.

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

sure, no problem

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart , Try npx -p @arcsine/win-info win-info where you have npx installed.

C:\Users\User>npx -p @arcsine/win-info win-info
npx: installed 1 in 2.441s
{
  "title": "npm",
  "id": 393890,
  "owner": {
    "name": "cmd.exe",
    "processId": 7528,
    "path": "C:\\Windows\\System32\\cmd.exe"
  },
  "screens": [
    {
      "x": 0,
      "y": 0,
      "width": 1707,
      "height": 1027,
      "index": 0,
      "scale": {
        "x": 2.25,
        "y": 2.25
      }
    }
  ],
  "bounds": {
    "x": 198,
    "y": 198,
    "width": 932,
    "height": 511
  }
}

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

image

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart The latest verison (0.2.9) of the above script has been published, if you want to give it a try

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

@arciisine
image

{
    "title": "npm",
    "id": 920152,
    "owner": {
        "name": "WindowsTerminal.exe",
        "processId": 55928,
        "path": "C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.5.10271.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe"
    },
    "screens": [
        {
          "x": 0,
          "y": 0,
          "width": 1536,
          "height": 824,
          "index": 0,
          "scale": {
            "x": 2,50,
            "y": 2,50
          }
        } ],
    "bounds": {
        "x": 388,
        "y": 166,
        "width": 1146,
        "height": 619
    }
}

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

looks like screens[0].scale.x should be 2.50 instead of 2,50 and same for y

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart Thanks, this looks to be an issue of localization tied to the string formatting. I'll get a release today or tomorrow.

from vscode-chronicler.

arciisine avatar arciisine commented on September 25, 2024

@lifeart Verified the fix, should be rolled out in the latest vscode chronicler update. Thanks for all the assistance in finding (and troubleshooting).

from vscode-chronicler.

lifeart avatar lifeart commented on September 25, 2024

@arciisine thank you for your work! I can confirm, it's working as expected! (v0.1.11)

from vscode-chronicler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.