Get textbox reference for viritual keyboard UWP, C#, xaml - c#

I have made a virtual keyboard for UWP application that will be used in Windows 10 IoT. For me to be able to use it i need to get a reference to textboxes/fields that is outside my program. I want to be able to read and write from thees text fields but do not know how this can be done.
One example could be if i was on a web page like google and would like to send information from the keyboard to the search bar in google. Or on facebook and would like to send a message. If there is to a textbox in my program then i would know how to send the information. But i also would like to write in all possible textfields like the examples above.
How do i get the keyboard to get the information of where to send it, feel where my mouse pointer has clicked and get a reference of some sort to send my output.
I am sorry if this question has been posted before but as i am in unknown territory i did not know what to search for.

Related

Windows Forms C# - Making a button react differently depending on record shown

Newbie here.
I am trying to create an app for a local library and was hoping to be able to have the synopsis of the book show up when you click on the synopsis button. I would like it to show different information depending on which record is being shown. Is this something that is possible to do?
Thank you community!
Megan
Library App User Interface:

Write into website cell using c# or WPF application

I have a very strange request that might upset some of you, anyway I want to write text or numbers in the website using C# or wpf software.
What I want is I pass string or number to the website when I press for example F11 on the keyboard and that number or string can be from a textbox.
Assume the following is Grid on a website:
Now I want to pass 0.01233 from textbox, to the highlighted cell in the website using c#.
Can anyone please how this can be achieved or at least guide me which direction I should go and achieve this.
Please Note I am not a developer of website and I have no control on website, I cannot write script on website
I've done something like this before, though I can't seem to find my old code. WPF has a WebBrowser control. You can use the Document property to access elements of the webpage an (if I recall correctly) execute scripts assosiated with those elements.
Of course it goes without saying that this would be a bodge at best, since any change made to the website could break your code.
Also, this forces you to use the WPF WebBrowser instead of your browser of choice.

Formatting and printing Text in C#

This may be a very basic question, but I never managed to find something that quite covers my question.
I'm working on a program in C# that lets you select different options (Imagine a shopping list in which you can check different items) if you hit the print button, it is supposed to create a file that has a title, some basic information, all are provided by the program itself and than makes a list of basically everything you have selected. After this "page" is created, it should be send to the same "standard windows print menu" everything goes to when you hit the print button in any program.
I have never done anything like this before and I have no real clue where to start trying to format my texts, is there an elegant way you could do this?

C# Custom paste like feature

I am trying to create a way or inserting text anywhere on the system in Windows, much like the clipboard works. For example, pressing ctrl+shift+1 would 'paste' text set in my application into where the user is currently pointing the cursor.
For example, if my application sets it to be 'local.network' and the user presses ctrl+shift+1 in their browser address bar, it would paste in 'local.network'. I then want to have different values set, depending on what number the user presses. Is this possible or can I not create a system wide function like this?
What you're looking for is how to register a hotkey.
Register more than one hotkey with RegisterHotKey
Set global hotkeys using C#
in response to your followup comment, sorry, I though the question was more about the capturing the key press event. If you need to paste text to a window that you don't own, then this question would be a near duplicate. That question uses WM_SETTEXT but you can easily use WM_PASTE instead.

How can you detect when the user clicks on the notification icon in Windows Mobile (.NET CF 3.5)

Surfing the net, I came across this:
this code that shows how to display a notification at the bottom of the screen on a Windows Mobile device. My question is, is there a way to either specify which options are displayed beneath the notification (on the taskbar) or is there a way to detect when the user clicks on the notification itself, so that I can react to that programmatic ally.
With this specific API, the key is in the SHNOTIFICATIONDATA's hwndSink member. When the notification is clicked, the hwnd you pass in here will get the click message. For this it's simplest to pass in a MessageWindow's handle.
You might also look at the CeSetUserNotification API instead. It's actually quite a bit more robust in what it allows you to do and how you can get notifications back at the app.

Categories

Resources