There is a wpf application. I want to automate a function on that wpf application while its already running. How to do this by autohotkey?
Related
Is it possible to run a Winforms Apllication within a PyQt5 main application?
I have a main python PyQt5 application, but need to integrate an additonal part from a Net Winforms App. The problem is the event loop of the Winforms app.
Is there any way to combine the PyQt5 event loop with the Winforms event loop?
The Winforms app has several windows and coroutines, without PyQt5 it works perfect, however, as soon as the PyQt5 event loop has control the Winforms app stops processing event, the only solution so far was to open the Winforms windows with ShowDialog
I've used Desktop Bridge (Project Centennial) to convert my WPF application into the UWP world. In the converted app I'm going to use a background task. It would be very conveniant if I could run it in in-process but as far as I understand it is not possible to do in the WPF process?
Correct? Or is there some magic trick I could use?
You can indeed use an app service that runs in the same process as its host UWP app, but a WPF application has a different Application class than the Windows.UI.Xaml UWP Application class that has no OnBackgroundActivated method to be called when the app service is invoked.
So you should either use a background task that runs in a separate process or convert your application into a pure UWP app.
The background task needs to run out-of-proc with the WPF app.
You can find a sample here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/JourneyAcrossTheBridge_Build2017Edition/Step3
I have a need to host a Silverlight application as a module in an existing WinForms application. My plan is to host the web page that hosts the Silverlight app in a web browser control in the WinForms application.
The part I have not been able to figure out is how to communicate from the Silverlight application back to the Winforms application. For starters, the Silverlight application needs to inform the web page that it is closing and have the browser control inform the WinForms module that the application has terminated. Once that is working I need to be able to send several different events to the WinForms program.
This does not seems like it should be hard to do, but I am hoping that someone can save me a lot of experimenting and keep me from wasting time following the wrong path.
My environment is Silverlight 4. The Winforms application also currently is hosting some WPF controls.
kind of a backwards approach.
Silverlight is a workaround to make WPF available on other platforms.
If you are running winforms, just host it as WPF window. It is really easy.
MyWindow window = new MyWindow(); // WPF widnow
ElementHost.EnableModelessKeyboardInterop(window) // this is part of windforms integration namespace, allows winforms and wpf to communicate
window.Show();
Im creating a custom control. I have common code for WPF and XBAP application. I have some different calculation/work to do if it’s a XBAP application. How to detect whether it’s an xbap application or a WPF application?
You can use System.Windows.Interop.BrowserInteropHelper.IsBrowserHosted property identify whether it is hosted on web or windows
Say, I have a WPF program with a Windows Forms control in "WindowsFormsHost" on some of its windows.
I use that program via Remote Desktop.
How will this control's graphics remote? Via GDI instructions as if it was WinForms app or as plain bitmaps like WPF does?
Created a test. So, it remotes as GDI, very fast.