473,915 Members | 5,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

focusing a spawned application

Hi,

Been looking through python docs and searching the web, but haven't
found out how to do this.

What I've got so far is a (windowed) client app that connects to a
server (written in python). Both are running on the same machine. I want
the client app to instruct the server to launch windowed apps, which
I've been able to do so far (using os.system and os.spawnl). The problem
is that because the server is launching the app, the client app remains
topmost, with the spawned app sandwiched between the command prompt
window and the client app window.

Is there a cross-platform way to instruct that spawned app to go to the
front of the stack?
Jul 18 '05 #1
0 1035

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1484
by: William E Hatto | last post by:
Hi to 1 and all, my appologies to Nathan for the repost here.... I have an asp application/web site that uses a logon page then a page for the menus and separate asp pages for all the options in the menus. The options listed in the menu's spawn separate web windows leaving the menu page in the background.
1
1447
by: Neds | last post by:
I'm having a major problem with threads. I have a main application that dynamically loads plugins. One of the plugins receives SMS messages in a seperate thread. When an SMS comes in I need to display an MDI Child form within the Main Application workspace. The code bombs out when I attempt to assign the MDIParent of the child form to the Main Form (in the main thread). Some how I need to merge the spawned thread with the main thread...
6
9181
by: news.microsoft.com | last post by:
I have a very multi-threaded Windows Forms application. There are many BeginInvoke calls, as well as Thread/ThreadStarts. My issue is that when I quit my application there are often threads hanging around that prevent the process from dying. I've gone through my code line by line looking for orphaned threads, but I'm unable to figure out where they are being created. Is there any way to kill all threads spawned by a process without...
3
1031
by: Steven | last post by:
I have a question about the focusing on windows form control. First of all, I have a main windows form (MainFrm) for my application, another form (NewFrm) will be displayed if pressing one of the button on the MainFrm. I used the NewFrm.Show() method to open the form. However, if I switch the focus to another applcation (eg. Outlook, IE etc) and then switch back to my application program. I lost the focus on NewFrm and MainFrm display on...
4
1631
by: Kevin | last post by:
I have an application that handles datascraping with a TN3270 session. The TN3270 session is opened with a .ws profile and pcomstrt.exe. The process string in the application is this: psSession = New Process psSession.StartInfo.FileName = path\to\pcomstrt.exe psSession.StartInfo.Arguments = "/P="path\to\ws file & " /S=X /Q" The /P specifies the .ws file to load, the /S=X specifies that the session letter should be X, and i forgot what...
1
3773
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a C# application in which I start another process which produces output to stdout and stderr. In fact, that process is the uSoft VS2005 C/C++ compiler itself! I would like to capture the results of the compile and display them in a RichTextBox. The problem I'm having is that when I intentionally introduce an error in the C code I'm compiling, I can't read the error output in my C# program. I've tried redirecting both...
0
1311
by: loorthu | last post by:
I am noticing that pexpect kills any child that it is spawned when the parent is terminated using SIGINT (e.g Ctrl-C on the shell), but not when it is killed by SIGKILL (e.g 'kill -9' on the parent process). Here is a quick demo (tried on Linux 2.6.9 kernel): #!/usr/local/bin/python import pexpect, re
2
3514
by: subrahmanya | last post by:
Hi All Does any one has idea about how to set stdout and stderr to a spawned process? I don't want to have all the handles of the parent process in the child process but I want only one of it (handle to a file). If I inherit all the handles of the parent process my application won't work. So I am spawning a process without inheriting the handles but I am inheriting environment variables. Later I take the PID of the
4
2447
by: A Nonymous | last post by:
I am trying to implement a web updater for my C# application. I am using a technique I have used for several years in Win32 apps but it isn't working for the .NET version of my app. This is my process: 1. My app retrieves a version file form our web server and compares the version to the version of the current assembly. Works fine. 2. If an update is available, I download the new Setup.exe from the web server and save it in a folder...
0
10039
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9881
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7256
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5943
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3368
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.