Focus between two applications

Hello

I work with both applications at the same time, which is made with CVI and the other not (e.i. Explorer). The application made with CVI every 20 seconds displays a new Panel and take focus (hence the other app lose focus), but I would still keep the emphasis on the second request (Explorer). Is this possible?

Thank you very much

Daniele

Danielle:

Matteo has given you some useful links if you want to give your app focus.  But when I read your post, it looks like your application takes the focus and you don't want it.

The attached sample project shows two ways to allow another application to keep focus when your application will normally consider.

Both methods use the Windows SDK functions (a.k.a. Win32 API) to get or set the foreground window (the one with focus).  The Windows SDK is not installed by default with CVI.  It comes with the full package and the Suite OR developers, but not with the basic package.  If you have the complete package or suite, and you do not have the SDK installed, you just re-run the installation of the CVI and select only the SDK (or Win32 API).

The basic idea behind the first method is that before you post your new Panel, you check to see which window is in the foreground by using GetForegroundWindow(), then your new display panel and then set previous window of the application in the foreground using SetForegroundWindow().  The downside of this method is that your new Panel has a quick flashing of focus before focus is returned to the other application.

The second method checks if your app CVI is the foreground window before displaying the new window.  It does not display your new Panel if another application has the focus.  This way you don't get the blinks of update to your application CVI.  Depending on the purpose of your new Panel, you may have to display the new Panel when your application receives the focus instead to wait until 20 seconds to display.

For demonstration purposes, this sample application appears again just the main draw instead of display a new Panel.  The two methods will be work the same way for a new Panel as well.

Instructions for running the demo and see the two different methods are on the main Board.  Just build the application and run it.  I tested this example in CVI 6.0 and version 9.0.1.

Having said all that, I have a question for you.   Why your application CVI shows a new sign every 20 seconds?  You can update an existing panel without using the DisplayPanel command and forcing the update to your application CVI.  Do you need a new Billboard?  And what happens after 20 seconds?  The first Panel again get hidden or destroyed?  Are another new panel displayed?

There could be something even easier, you can do without one of these SDK, as do not use DisplayPanel if you need SetCtrlVal.  (But this model made for a writing exercise pleasure).

Tags: NI Software

Similar Questions

  • Data connection between two applications

    Hello world

    Is there a way to open a connection of type 'stream' between two applications without using the file system?  Writing on file seems too gross.  Surely someone does this!

    What I found so far:

    Object 'Event' does not seem to do... DOM seems to be communication within an application or suite.

    "Socket" seems to be ruled out by security, but no official word on this issue...

    "Then" explicitly says that only one application can access a serial port at any time...

    Class interface 'Connection' seems to have many children (taking one) but all seem to be dead ends.

    Anyone?

    Thank you

    DD

    I suggest using a global event. You can attach an object to the event and look to the other application.

    See the documentation for the API of ApplicationManager.postGlobalEvent () and the GlobalEventListener interface.

  • share data between two applications

    I would like to know if there is a way to share data between two applications of MXML or more?

    Using the class SharedObject can operate only in a single application, but if you start a second request, this SharedObject does not its value (zero) already set from the first application.

    Thanks for your help!

    I remember correctly, there is a setting to allow work between applications. Also you must be sure flush() to save the data.

    Another option is LocalConnection.

    Tracy

  • Channels of communication between two applications?

    Hi Experts,

    Y at - it anyway (s) for two applications on the same device to talk to eachother? Something like a local socket communication?

    Thank you

    MoWriter

    Hi there did you look at this KB?

    http://supportforums.BlackBerry.com/T5/Java-development/communicating-with-other-applications/Ta-p/4...

  • Navigate between two applications in the same workspace without sing again

    Hi all

    Version 4.1.0.00.32 of apex. Oracle DB version 10.2.0.3.

    I have two applications built in the same workspace, if a user can log on to two applications with the same user name and password. I'm looking to put a link on one of the applications to direct the user to the other app. Is there a way to avoid name of user and password to re-enter once the user clicks on the link? I noticed that the session ID is application + user. Not by the workspace + user.

    Thank you
    Sinan

    Change the properties of authentication scheme in both applications and set the name of the Cookie to be the same.

    As long as the session ID is maintained in the links, you'll be fine.

    Each application will allow authentication in your applications, but only after the relevant authentication will trigger.

    Scott

  • comparison and fusion between two applications

    Hello
    We run APEX 3.1.1. I have an application (say 101) production that has about 80 pages. I started a project to create more pages and references of web service and other things. It was supposed to be done in a month. so, I cloned application 101 to 102 and began with my changes in 102. at the same time any request for a quick change of the production team is a 101 application, so that the results are visible instantly.

    now I have finished my work at 102. and 102 is ready to be the application for production. My problem now is, how do I get minor changes, I did several times in app 101 to 102?

    I tried to export the two applications and sqls against them, but these sqls are very large and there is a margin of error as you more the text of 101 to 102. There must be a cleaner way to do what I'm not aware of.

    Any help is appreciated.

    Abdul-

    I would say that you need to implement the changes manually. I understand the question:

    You have two applications: App A & App B

    Both applications are in the same space and work under the same version of the APEX. You did changes in both A & B (change a region in the App, change the text of a label to the App B)?

    You will probably have to open each application separately and just start their merger manually. Best suggestion, the application you have worked last, copy your starting point and open the other application and start to copy songs on...

    Thank you

    Tony Miller
    Webster, TX

    There are two types of pedestrians - the living and the dead.

  • How to make a link between two applications of ADF

    I use jdev 10.1.3.3 and ADF.

    I need navigate from one application to another application. for ex - a table has a column testid.it is show link. By clicking on the test id it should to go to another jspx. page in another application,
    I'm new to ADF.please help and give a suggestion how this can be realized.

    Please answer

    Paste the url of the page you want to see in the action golink property...

    In case you have two applications with security as login and session, sorry that can't be done. Go to the login page of the destination application.

    Published by: Rohit Hoon on April 23, 2009 02:08

  • How do Ms integration between two Applications of HFM FDM

    Dear all,

    I need to create a FDQM Application in order to transcode and transfer of a HFM to an another HFM Silverligh application data. I'm on system 11. Then.

    1. I need a step by step guide to perform this task, because it is completely new to me.

    In addition, I ask the following also:

    2. is it possible to extract only a part of the source HFM database: for example, I want to extract only the data of the Custom4 [no] element (excluding any other sheet of this size);

    3. is it possible to extract data from parent entities? How can I do this?

    I know that my questions are a bit more generic, but again, I'm new to this kind of implementation.

    Thank you very much.

    You can use the function fDBExtract of the HFM adapter class to extract data from HFM in a flat file, and then import this file in FDM.

  • How to communicate between two application mxml?

    Hi ~ all.

    A.MXML a TabNavigator.

    I want to connect 1 tab in TabNavigator to First.mxml.

    First.MXML is a complete application.

    First.MXML can work alone.

    How can I view First.mxml in the 1st tab of A.mxml?

    Sorry for my English.

    Thanks in advance.

    Kevin.

    I found the solution.

    http://opensource.Adobe.com/wiki/display/FlexSDK/spark+module+and+moduleLoader

    Thank you.

    Kevin.

  • Best method of communication between the Application LV

    Hello together,

    I'm looking for the best way of communication between two Applications LabVIEW. As VI is clear, I can use a queue or a global variable and so on.

    But what is the best, when I compile the screw later for DLLs or Applications. So far, we always use the TCP/IP Protocol, but I think that there must be a better way instead.

    So if someone has an idea - he is welcome.

    Thanks in advance

    Markus

    TRAXX wrote:

    What I don't like with TCP/IP you still need a second thread (looped) who manages the TCP/IP communication. I thought that there must be an easier way.

    I also thought that shared variables are always limited to a single application. Thanks for the ideas...

    This second loop is a loop that YOU control. If you go with shared variables you are a slave to what they can or cannot do. In addition, they work over TCP/IP is not out of the picture.

    Its your call.

    Ben

  • Connect between two different applications. A call to the other application.

    I would like to know if it is possible to connect between two different applications in oracle apex IE appeal one request for the other? If the applications are allowed even say LDAP.

    Yes,

    Refer to the post office, requested by me and answered by fac586

    How to use one login for all applications in one only workspace

  • ADF BC: Choose between two identical DB schemas on the application startup

    Hello
    We want to provide users the ability to choose between two identical db schemas.
    Anu idea how?

    Cvele wrote:

    -No, my idea is to just drop-down list (selectOneChoice) with available data sources

    Then it would be quite similar to my example, except that in the JSP page you have an input field, but the drop down menu. The underlying values of the different choices in the drop-down list would be different JDBC data source names (or alternately a string that your middle-tier code would then become so JDBC data source names you don't want the JDBC data source names to appear in the 'View Source' in your HTML page) for example).

    -Aaa, I think I understand now, correct me if this evil: in the app, my data controls is currently configured to use an App module even Configuration with data source connection.

    However, at the level application server, at deployment time, I have to define two distinct dataSources and map to point to the my two diagrams separate db, correct?

    Fix.

    And on the login page, I fall to the bottom of the list with two options, one for each db schema. True values for options is a names of data source that is set to the name of the application server.

    Or with a level of abstraction as I mentioned above, if you don't want to "View Source" in your HTML page to contain the JNDI names themselves. The list can contain logical names such as the 'db1' and 'db2' which, inside your classes of dynamic authentication information, you could turn the 'db1' string in some "jdbc/DatasourceNameForDB1" and similarly to turn the 'db2' string in the datasource JNDI name.

  • How to pass the parameter between two adapplications (remote application)

    Hi friendz,.
    Please help me...
    I use JDEV 11.1.2.2.0 version.
    My problem is the following,
    When I have two applications of mapping through the jar files.
    It works well, but I want to continue setting an application to another application...
    How can I do this?
    Thank you...
    -Rude-

    Edited by: Harsh1 December 10, 2012 19:10

    Hello

    Check this: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/52-taskflow-in-lib-169195.pdf

    Arun-

  • must click twice to focus on an application

    This problem is rather difficult to describe, and I do not know the correct jargon, so I had to hurt looking for another thread that can ask the same question.

    Situation: I have two applications (this happens with any combination of applications), let's say TextEdit and calculator. The 'focus' is on the calculator. I can type in numbers from the keyboard, or click with the mouse on the calculator figures so he computes. No problem. But, if I want to then bring 'focus' to the TextEdit window - where if I type something - when I move the mouse anywhere on the window in TextEdit and click, it does not update to TextEdit and it remains greyed out. the focus remains on calculator.

    In order to get to restore the focus to TextEdit so I can type, I have to click twice on the app. However, I can't double-click on it or it will minimize the window. I have to click once, wait a few seconds, so it won't register as a doubclick and then click New. It of incredibly frustrating, slows down my work flow and I cannot for the life of me figure out how to change it. Happened for quite awhile, and I think changed after I downloaded some sort of new update, which one I don't remember unfortunately.

    Again, this happens with both applications. I am aware to be able to use the command + tab to switch between apps and I use it often, but sometimes using my mouse to organize windows or any other action is necessary.

    Any help would be much appreciated!

    Thank you!

    This would be me a lot.

    It is a test to identify the problem. Create a new account.  See if the problem persists.

    Move the finder to the desktop preferences.

    http://osxdaily.com/2014/12/16/show-user-library-folder-OS-x-Yosemite/

    Create new account

    Blue Apple > System Preferences

    clicks on the icon accounts

    Click the icon representing a lock if it is locked.

    Enter the password to logon

    Click on + icon (left side of the screen just above the lock icon)

    After you have created a new account, you must log out of your current account.

    Blue Apple > sign out name current number......

    Sign in to the new account. see if problem goes away.

    If she disappeared, some files preferably I messed up on your account. Rename the appropriate preference. You must understand the name.   These are .plist files.  Look for these files in the Preferences folder that is located in your library folder [more formally ~/Library/Preferences].  ... restart.

    Post back for assistance.

    More tips on creating a new account

    http://pondini.org/OSX/transfer.html

  • How to find directions between two locations other than my current position. I finally gave up and use Google Maps.

    In the latest version of cards, there is not apparent until you find directions between two places when or is your current position. In earlier versions, we enter in two places of departure and destination. In the new version, you enter your destination into a search window, but there is no place to enter a starting location. The application assumes that your current place of residence is always your place of departure. It is a remarkable oversight by designers. Am I missing something?

    If you go to maps, you can search for a location. Once you find the place, press the route button. It is from your current location, but if you type on my position, next: you can change the location that you want the management of.

Maybe you are looking for