Coder Social home page Coder Social logo

Comments (4)

hecomi avatar hecomi commented on September 9, 2024 2

How to send click message

I have uploaded an example of the code I used in the YouTube video below.

At that time, I used uTouchInjection to send the click message, but I think SendMouseClick() in the sciprt will also work. The point is to bring the window you want to click on to the forefront. For this purpose, SetForegroundWindow() is called first.

uTouchInjection

If you do not include the Samples directory, the dependency on uDesktopDuplication is removed. If you are installing from .unitypackage, uncheck the uDesktopDuplication + VR sample.

from uwindowcapture.

hecomi avatar hecomi commented on September 9, 2024

Sorry for my late reply...
You can not interact the window captured by uWindowCapture directly. But if you get the uv by a raycast and calculate the position in desktop with x, y, width, and height of the window, you can interact it by calling SendMessage Win32API with the position.

from uwindowcapture.

Aminolroaya avatar Aminolroaya commented on September 9, 2024

Hello @hecomi. Thanks for your package. I saw that you have worked on interaction:
https://www.youtube.com/watch?v=YoFmszqILd4
Also, found UwcRayCastExample.cs in your codes. Is it possible to give more hints or share the code for this issue stream?
For example, in wcRayCastExample.cs when the ray hits which of windowCoord = result.windowCoord; or desktopCoord = result.desktopCoord; should be sent to SendMesssage. Can you also how we can SendMessage Win32API with the position?
BTW. I also found UTouchInjection repo, but it depends on UDesktopDuplication that does not work for me bc of GPU problem. How can I change that to work with UwindowCapture?

Thanks.

from uwindowcapture.

Aminolroaya avatar Aminolroaya commented on September 9, 2024

from uwindowcapture.

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.