C# Switch between program, and a java program -
i need figuring out how switch between programs, first application can taskmgr process. second program launches java applet , described multiple java.exe's
maybe there lays solution around getting process name windowtitle since not advanced in c# seeking help.
private void button1_click(object sender, eventargs e) { if (prog1) { var prc = process.getprocessesbyname("progam1"); if (prc.any()) { setforegroundwindow(prc[0].mainwindowhandle); showwindow(prc[0].mainwindowhandle, showwindowemum.program); prog1 = false; } } else { var prc = process.getprocessesbyname("a java applet"); if (prc.any()) { setforegroundwindow(prc[0].mainwindowhandle); showwindow(prc[0].mainwindowhandle, showwindowemum.java); prog1 = true; } }
to clarify why needed both application run in fullscreen borderless setting, , not have mouse or keyboard, touchpanel limited commands. creating touchable button switch between both programs seems solution.
Comments
Post a Comment