I have WPF applications running on a Windows8 tablet that captures user writting. I use the InkCanvas control to capture the data but I want the user can only writte with the stylus not the finger.
MoreOver, this application can run on a Desktop PC and in that case I would like to capture the writting from the mouse.
Is there any way to filter the "input mode" of the inkCanvas? I have been searching but I haven't found any way to do it.
Many thanks in advance.
Related
I am writing a program similar to team viewer, which is an application that allows one computer to control other (by viewing the screen and able to move his mouse and control his keyboard).
In order to do so i have managed to share the screen of a computer with another one, and the only thing left is to enable the mouse control. The program is written in c#. The screen sharing is working using 'ffmpeg' library.
The details that i have about the second computer, in case i am the computer that is willing to "take control" of the other, is his 'ip' address.
Does anyone know how to do so or where can i found the solution?
Take a look at this: How to move mouse cursor using C#? it should get you started.
You will need to create some kind of protocol / transport to issue the remote calls. But this shows you how to interract with the mouse programaticly.
So a lot, if not most of all Media Players have a "fullscreen" mode. My application has a WebBrowser control and also an embedded Windows Media Player control. Now the problem here is that the fullscreen mode is literal. It actually covers my whole screen.
Is it possible to somehow modify the behavior of my application so that all "fullscreen" modes only stretches to the bounds of my application. Basically only "fullsceens" inside my application?
Any hints or suggestions are welcome!
Only idea that I could come up with it somehow fool windows thinking that my application is a monitor. But maybe that's taking it too far?
No way, sir.
"Full screen" is "full screen" and it is managed by OS to cover all the screen.
If you need to adapt the video size based on parameter you can't work on full screen.
I wrote a simple c# windows forms application (.net, in visual studios 2012) for a mouse-controlled keyboard for use in a desktop application. Ultimately, I want to have a keyboard form that can be used on a touchscreen in a kiosk-like setting.
My question: can I expect the desktop app to work "as is" on a touchscreen? My specific concern is whether I can reasonably expect the mouse-click events to intercept touch events on the touchscreen, or whether I should a priori consider importing certain libraries and/or bind events other than "Click". I would simply test it myself but I don't have access rights now to a touchscreen device on which I can run the app.
Can I expect the desktop app to work "as is" on a touchscreen?
Yes, it's down to the hardware to translate a "touch" to a click. You can write more advanced apps which target touch screen devices specifically e.g. swiping/pinching etc. However, if yours is just a basic app with buttons it should all work the same on a touch screen.
Basically I just need to be able to summon the keyboard whenever a user touches a text box in my application, instead of them having to go to the taskbar and actually request that the keyboard is summoned.
Does anybody have any idea how to do this? Whether there is a specific touch API I can touch into? My application is currently written in winforms and c#.
Many thanks,
Christian
Process.Start(#"C:\windows\system32\osk.exe");
I want to write a C# application which can record a video capture of one of its WPF controls.
Is there a solution in .Net to record video from a control, or is there some library I could use?
My goal is to write a SketchCast application. The use case is the following:
launch SketchCast app and press record button,
write ink into a WPF ink area, and talk,
press stop,
recorded voice and ink animation get
saved into a video file in some
encoding.
If you don't have to write this application yourself, you can use Windows Media Encoder(*) and restrict the screen capture to a single window. Just set your WPF control to fill the entire window and remove the window border. WME has support for voice recording during screen captures.
(*) or any other screencast software with these features