Comments (4)
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.
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.
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.
from uwindowcapture.
Related Issues (20)
- Window messages aren't sorted, resulting in errors when a window is only active for a single frame HOT 1
- 'uWindowCapture' could not be found (are you missing a using directive or an assembly reference?) HOT 6
- bad performance with window.GetPixels HOT 2
- LNK1104 for uWindowCapture.def HOT 2
- About screen share HOT 1
- Windows Crash from CaptureService.dll eating up pagefile HOT 2
- Trying to learn more about compiling DLLs
- DPI scaling issues with child windows
- Linux support HOT 1
- Some right-click context menus flicker a lot when Window Capture is running HOT 1
- Windows cannot display until I focus this program.
- Is it possible to use Direct X 12?
- How to hide yellow selection box when capturing window? HOT 2
- [uWC::Err][2023-04-15 11:00:42] WindowsGraphicsCapture::CreateItem() threw an WinRT exception: 0x80004005 未指定的错误
- Two Desktop has same value of handle! HOT 1
- Minimizing the window results in incorrect size HOT 1
- UWP build does not work, it gives this error in the image below HOT 1
- Transparency for VTubeStudio? HOT 1
- Can't change the value of Desktop Index, I'm trying to work with mutiple displays at the same time, Please help!! HOT 2
- Current Desktop Index
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uwindowcapture.