How to detect what keyboard is currently active on desktop?

Hi there, I'm working on a virtual keyboard (window with buttons as keys) for my swing application. When I show keyobard window I would like to adjust the layout of my virtual keyboard to system keyboard that is currently active on desktop. But I don't know how to detect what keyboard is currently active. How to detect this? Thank you.

I answered my own question - see
http://forums.ni.com/t5/LabVIEW/Loading-and-Running-a-VI-on-a-cRIO-from-a-PC/td-p/796657
On the Real-Time CompactRIO Properties > VI Server, you must check the box for TCP/IP protocol, which by default is unchecked.
Also, when you make a Build Specification for a VI and set it to run on startup, you can still enter the VI name (not c:\ni-rt\startup\startup.rtexe) as the VI Path on the Open VI Reference.

Similar Messages

  • How to know what applications are currently running !!

    how to know what applications are currently running !!

    if it is in linux use "ps(Process Status)" command to know what is running currently.... for more see this link
    http://www.computerhope.com/unix/ups.htm

  • How to detect sessions that are currently running parallel queries?

    Hi everyone,
    How to detect session that are currently running parallel queries?
    - The only way i can think of is querying pdml_Status from gv$session?
    - Is there a better way to do this?
    Follow up question:
    After detecting sessions that are running parallel queries how do i identify which sessions are slaves of which session?
    thanks!

    Start with V$PX_SESSION, however also take a look at V$PQ_* and V$PX_* tables.

  • Custom Component : How to detect what charset the request used?

    I want to write a file upload component, this component must use the same charset as the request used to decode file name from data post from web browser, How to detect what charset the request used?

    Hi Eddie,
    As Arjit suggested, there are a bunch of functions available in WEBI like GetDominantPreferredViewingLocale(), GetLocale() and GetPreferredViewingLocale(), etc. that you could use.
    There are no such specific functions provided within Dashboards tool.
    So, you can create a WEBI report, and have one of these formulas specified in a variable in the webi report. Then, have the block published as a BIWS and use this BIWS in your dashboard.

  • How to get the number of current active external modes?

    hi all,
    I need to get the number of currently active external modes. This can be done by calling function THUSRINFO. But this only works propperly, if you are logged on only once. If you are logged on more than one time then the function returns several entries in the parameter USR_TABLE. The entries mainly differ in the first parameter TID (type UTID, INT4) "terminal-identification" but how can I know which is the valid one for my current session. Functions TERMINAL_ID_GET, SPH_TERMINAL_IDENTIFY and SPH_TERMINAL_ID_GET dont work.
    Or is there another way to get the number of active external sessions?
    Thanks in advance,
    Michael

    Hi,
    tables: usr02, usr41.
    data: OPCODE_MODE_COUNT(1) TYPE X VALUE 3,
          modes like sy-index,
          u_MODES LIKE MODES.
    select * from usr02.
      select * from usr41 where BNAME = usr02-bname.
        CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_MODE_COUNT
          ID 'TID' FIELD usr41-TERMID
          ID 'MODES' FIELD MODES.
        IF SY-SUBRC = 0.
          u_MODES = u_MODES + MODES.
        ENDIF.
      endselect.
      if sy-subrc = 0.
        write:/ usr02-bname, u_MODES.
      endif.
      clear u_modes.
    endselect.

  • How to end Promotion which is currently activated

    Hi
    My scenario is promotion already  running in stores for the period of  01.02.2010 to 30.04.2010, now i need to end the promotion. What i did was,  i went to the WAK5  and deactivated the promotion wef from tomorrow (05.02.2010) for the same promo no. which i activated earlier. What happened in the background was it deleted the condition record ( didn't set the deletion indicator)  and no conditon record exists in VK12 against  condition type VKA0 and when i generated idoc only sales price was going and no promo pricing is going because of no condition record for the promo.
    POS system need information about deactivation of promotion for the same promotion no.
    How you  handled this scenario? or any other method to end the promotion? 
    Pl suggest.
    Best Regards
    Swami

    Hi
    Which Idoc are you using?
    if you are using WBBDLD Idoc, there is a change segment to be activated in the IMG of assortment list profile which will sent the deleted information in E1WBBCH segment.
    hope this helps
    Suhail Shaik

  • How to detect what's using port 8080

    I'm getting this error when runing my ANT script:
    [java] LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
    wonder how can I tell what's using port 8080.
    thanks

    windows:
    c:\netstat -an | find "8080"
    *nix:
    netstat -an | grep "8080"

  • How can detect the serial port is active

    I made a program. It can read datas via serial port. But the datas wont came all the time, so the other part of the program not need to run. I want to put before the "reading serial port" a detection about the serial port is get a data. So the reading is wont start before datas are not coming. Can anybody help me how can i solve this problem?

    Hi Zoyo, if you use the VISA- VIs, the functionyou need is "VISA Bytes at serial port". It shows, how many Bytes are available in the input buffer. You can find it here:
    greets, Dave
    Message Edited by daveTW on 11-22-2006 02:01 PM
    Greets, Dave
    Attachments:
    Bytes at serial port.png ‏20 KB

  • How can I "see" what drivers are currently loaded in memory

    I am currently trying to track down an "apparent" memory leak where the performance of my relatively idle Macbook degrades over time due to an ever increasing allocation of wired memory (as viewed from Activity Monitor). Within about two hours of rebooting with only the essential processes running, I see my wired memory continue to increase up to and beyond 700 MB. About this time I experience intermittent spikes in the "CPU-%System" allocation of 25% and more which causes severe lagging in my mouse and keyboard. The machine eventually becomes unusable and requires a reboot.
    Because I see the wired memory continue to grow inexplicably over time and I am unable to isolate this to any processes listed in the Activity Monitor pane I have to believe that it is something not "visible" from the AM pane. I have read that wired memory is responsible for hosting the VM objects, the VM buffer caches, the I/O buffer caches, and the drivers.
    FWIW, I downloaded "Main Menu" maintenance software from Santa Software and ran all of the cache maintenance scripts - unfortunately, this did not effect any discernible improvement.
    My next guess is that there is some ill-performing driver loaded into memory that is chomping on my wired memory but I do not know how to "view" what drivers are currently resident.
    Is there a way to view each of the drivers that are currently loaded in memory?
    And, better yet, is there a way to view what amount of memory is currently allocated to each such driver?
    Any help is much appreciated - thanks in advance!
    - Bruce

    You would certainly see SOME "depreciation in memory", due to e.g. spotlight indexing and other processes. But it should be nowhere near to what you describe to the point where your CPU fan runs.
    Without any further detailed technical expertise, I would assume that it could be a RAM stick that is not working as it should be, resulting in the CPU having to make the extra "effort" to compensate for lack of RAM.
    Have you taken the RAM sticks out and reseated them? An dust preventing good contact?
    http://support.apple.com/kb/HT1651
    Any good?

  • Trigger invalidations, how to detect cause?

    Hello,
    is it possible to somehow detect what causes object(PKG/PRC/FNC/TRG) invalidations?
    Application users doesn't have righst to compile the object. After invalidation object can be again successfuly recompiled by ALTER XXX COMPILE; command. For example we are using after logon trigger for application users, this trigger gets sometimes invalidated for no obvious reasons, users are unable to login to the database because they're hitting permission denied upon trying to compile this trigger. Any hints on how to detect what is the cause of these invalidations?
    Thank you,
    D.

    Hm, what if I found out that last DDL time with the latest date were the following objects:
    SYS.DBMS_STANDARD
    SYS.DICTIONARY_OBJ_NAME
    SYS.DICTIONARY_OBJ_TYPE
    SYS.STANDARD

  • Extending the evaluation license asks for current activation code. Where is it?

    I am attempting to extend the evaluation period for the Vision Acquisition Software. I have obtained an activation code from NI.com to manually enter and extend the evaluation period.  When I access the activation wizard through the NI License manager and select the option to manually enter the activation code, the next step asks for the current activation code.  How do I find out the current activation code so that I can advance to the step for entering the new activation code?  
    Thank you for your assistance.

    I am not involved with the practice of extending evaluation licenses. However, if you directly received that code from NI, I would recommend to contact your local NI representative.

  • When opening safari i get a message that says major security issue please contact apple immediately suspicious activity might have been detected. what is this and how do i get rid of it so i can use my internet?

    when opening safari i get a message that says major security issue please contact apple immediately suspicious activity might have been detected. what is this and how do i get rid of it so i can use my internet?

    A misleading and malicious popup. Launch Safari with the Shift key held down; if that doesn't work, temporarily disconnect the computer from the Internet.
    (121307)

  • How do I show what menu title is active, e.g. current page, in spry navigation?

    How do I show what menu title is active, e.g. current page, in spry navigation?
    See website http://dorsay-easton-indian-law.com/index.html
    I want to have Home menu title have a different color when on index.html and so on. I keep using the term "active" for that, and "hover" for mouseover. Is that correct? And what do I need to do so that my menu displays an indication of which page is the current one?

    The CSS pseudo-classes in order are:
    a = any link
    a:link = an unvisited link (normal state)
    a:visited = a link after it has been visited
    a:hover = on mouseover
    a:active = on click
    a:focus = reached with tab key
    See persistent page indicator on menus:
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to determine which CDockablePane in a group is currently active in Visual Studio 2013

    I understand that to activate a pane, I can do the following:
    dockablePane->ShowPane(TRUE, FALSE, TRUE);
    But, in a group of panes, how can I tell which pane is currently active?
    For instance, let's say there are 3 groups of panes on the screen.  The first group contains three tabs captioned "A", "B", and "C".  The second group contains "D", "E", and "F" and the
    third group contains "G", "H", and "I".
    How would I determine the active pane within each group?  (As an example for reference, within Visual Studio in the left pane group, I can currently see the contents of "Solution Explorer" while "Class View", "Property M...",
    "Resource Vi..." and "Team Explo..." are within the same group but not active.  In the bottom group, I can see the contents of "Output" while "Find Results 1" and "Find Results 2" are present but not active".  
    In the right group, I can see "MySource.cpp" while "MySource.h" is present but not active.  So, I need to know how to request from each pane whether they are the current tab within their container or not.
    Steve

    Hi Steve,
    Thanks for posting in MSDN forum.
    (As an example for reference, within Visual Studio in the left pane group, I can currently see the contents of "Solution Explorer" while "Class View", "Property M...", "Resource Vi..." and "Team Explo..."
    are within the same group but not active. In the bottom group, I can see the contents of "Output" while "Find Results 1" and "Find Results 2" are present but not active". In the right group, I can see "MySource.cpp"
    while "MySource.h" is present but not active. So, I need to know how to request from each pane whether they are the current tab within their container or not.
    This scenerio in your example, we don't need to know the current tab within which tab group. Actually I don't understand why do you need to know that? If you are using
    AFX_DOCK_TYPE::DT_SMART   model dock pane, the dock pane should be implemented in a internal MFC
    CSmartDockingManager
    class and it is not intended to be used directly from your code. . You could read the source code of this class at VS installed path-> VC->altmfc->src->mfc->afxsmartdockingmanage.cpp
    For the dock pane layout in VS interface, I remember there is a sample named Visual Studio Demo sample in Visual C++ 2008 Feature Pack. You can download it at here.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b4e6cb6e-e2a8-4e02-9c67-0dc431618157/visual-c-2008-feature-pack-samples-where-to-find?forum=vcgeneral
    And the dock pane control implements the core functionality that controls docking layout in a main frame window by CDockingManager class.
    https://msdn.microsoft.com/en-us/library/bb983791.aspx
    A greate article about using CDockablePane:
    http://www.codeproject.com/Articles/493218/Understanding-CDockablePane
    Please tell us more details about what you want to do.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JavaScript:  How do you pass the currently active doc to a dialog in a menu item?

    I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating.  The menu item calls a dialog that prompts the user to select a page in the currently active document.  The problem is, I can't figure out how to pass the currently active document to the dialog.  I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up.  The AcroJS API gives the following solution (found under app/methods/execDialog):
    This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
       function dotheDialog(dialog,doc)
            dialog.doc = doc;
            var retn = app.execDialog( dialog )
    Finally, the following script can be executed from a mouse-up action, for example.
        dotheDialog( dialog4, this );
    I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed.  My own code looks like this:
      function dotheDialog(dialog, thisDoc){
        dialog.doc = thisDoc;
        var retn = app.execDialog(dialog);
      app.addMenuItem({
        cName: "Test Dialogue Box",
        cParent: "Edit",
        cExec: "dotheDialog(templateDialogue, this);"
    where templateDialogue is the name of my own dialog, rather than dialog4.  I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference.  Does anyone know how to do this?

    Sorry, here it is.  It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
    var templateDialogue = {
      initialize: function (dialog) {
        // Create a static text containing the current date.
        var todayDate = dialog.store()["date"];
        todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
        dialog.load({ "date": todayDate });
      commit:function (dialog) {    // called when OK pressed
        var results = dialog.store();
        var inBounds = (parseInt(results["tPag"]) < this.numPages);
        if(!inBounds){
          app.alert({
            cMsg: "Please enter a valid number for the page from which to make the template." +
            "\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " +  // I put this in to see the value of this.numPages,
            this.numPages,                                                                           // and it continues to be undefined.
            cTitle: "Page out of Bounds",
            nIcon: 0, nType: 0
        }else{
          var nButton = app.alert({
            cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
            cTitle: "javascript",
            nIcon: 3, cType: 0
      description:    {
        name: "Personal Data",    // Dialog box title
        align_children: "align_left",
        width: 350,
        height: 200,
        elements:
            type: "cluster",
            name: "Add a page to this documents templates.",
            align_children: "align_left",
            elements:
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Template Name: "
                    item_id: "tNam",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Generating Page: "
                    item_id: "tPag",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "static_text",
                name: "Date: ",
                char_width: 25,
                item_id: "date"
            alignment: "align_right",
            type: "ok_cancel",
            ok_name: "Ok",
            cancel_name: "Cancel"
    Side Question:  Out of curiosity, how would you abort if the user clicks cancel?  I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't.  Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing?

Maybe you are looking for