Windows - get focused application

Hi there,
does anyone know what dll & what functions windows uses to get information about the actual focused application:
Name, file, ....
Sincerely
Jeb

Hi
If you really "striving to become an expert", start with a simple application showing all files in a directory using JTable, letting the user select a new directory to show, go back to the privies director ans some more options.
If you like what you done so far, go into the JTree class and learn how to use it, then combine this class with what you already done.
Next step will probably be looking into Drag and Drop interface
This will use SWING, if AWT is what you want, your application will look poorer or you will spend a lot of time writing all this classes.
You can find all the info in this forum, spend a day or 2 to search and write. If you will do it all by yourself it will be the first step to become an expert .
Good luck
Noah

Similar Messages

  • Avoid window getting focus after pressing a mouse button on it

    I want that a window does not get focus although I press a mouse button on it, in Windows XP.
    I have search in Microsoft help and this fact is controlled by the Operating System itself. The notification that is sent after the user presses a mouse button is WM_MOUSEACTIVATE notification. The return value of this notification indicates the behaviour of the window after the mouse down, existing 4 options: MA_ACTIVATE, MA_ACTIVATEANDEAT; MA_NOACTIVATE & MA_NOACTIVATEANDEAT. The default is the first one, but I want to change the behaviour of the window to be the the third one: MA_NOACTIVATE, that does not activate the window, and does not discard the mouse message. The function that performs this is DefWindowProc according to the MSDN Help content.
    Any help about doing this in Labview? Is there any special function in Labview that allows setting this behaviour to a window or should I use a Windows dll? In that case how can be programmed? Has anyone done it before? I'm working with Labview 8.6.1, and I haven't found anything about this. Any help will be very useful.
    Thank you very much in advance.
    David Fernández

    It is the front panel window of a VI which I don't want to get focus. I have tried to achive this with property nodes, but the problem I think that cannot be solved in this way, because is the Operative System that gives the focus to the window when pressing a mouse button before Labview does anything. You can release the focus once the window have taken it with the Front Panel window focus property node, but what I really want is to keep the focus on the old window.
    My idea is that the VI act as a background of my application, so never can be over the rest of the windows. Some of them are floating but others are standard and I don't want to use modal windows, so I cannot solve this with the Window Appearance options.
    I have also tried to discard the mouse down in the Mouse Down? event, but I doesn't work, the window continues getting the focus although does not carry on any action.
    Any suggestion?
    Thank you for your interest
    David F

  • Dynamic Action on "Get Focus" After Closing a Popup Window

    Hi,
    From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
    How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
    Any pointers will be greatly appreciated.
    Thanks & Regards,
    Ashish Agarwal
    http://www.asagarwal.com

    Assuming that you have a dynamic action in the parent page which refreshes the region
    <li> Make a note of the event which triggers your dynamic action, lets call this event A.
    <li> Create a JS function in parent page which triggers event A when called.
    For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
    Your JS function could be
    function Trigger_refreshRegion()
      $('#P100_REFRESH').click();
    The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
    <li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
    just call the parent page's refresh JS function there using the
      opener.Trigger_refreshRegion(); //whatever was the name of the function that you created.

  • Swing JTextFeild is not getting focus -  Using jdk-7u17-windows-i586

    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focus

    993277 wrote:
    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem.

  • TS1368 Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

    Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

    Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.

  • On my G5 mac at work, I am getting - don't know what to call it - looks like extraneous matrix type code around prompt windows and in applications. Sometimes I will get large shapes of colors, yellows, magentas, cyans. Anyone else experience this?

    On my G5 mac at work, I am getting - don't know what to call it - looks like extraneous matrix type code around prompt windows and in applications. Sometimes I will get large shapes of colors, yellows, magentas, cyans. Anyone else experience this?
    I will attach a recent screen shot of a print window I opened and the extra code is above and below the window. There are matrix type blocks of code and then lines under the window. I get this all the time and it is getting worse.
    Any help to get rid of it would be appreciated.
    Thanks
    TatteredSkull

    It's likely the Video card, or possibly heat.
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto *but not including the Serial#*...
    Hardware Overview:
    Machine Name: Power Mac G5 Quad
    Machine Model: PowerMac11,2
    CPU Type: PowerPC G5 (1.1)
    Number Of CPUs: 4
    CPU Speed: 2.5 GHz
    L2 Cache (per CPU): 1 MB
    Memory: 10 GB
    Bus Speed: 1.25 GHz
    Boot ROM Version: 5.2.7f1
    Get Temperature Monitor to see if it's heat related...
    http://www.macupdate.com/info.php/id/12381/temperature-monitor
    iStat Menus...
    http://bjango.com/mac/istatmenus/
    And/or iStat Pro...
    http://www.islayer.com/apps/istatpro/
    If you have any temps in the 70°C/160°F range, that's likely it.

  • Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).

    Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).  I have uninstalled/reinstalled I Tunes several times and this has not resolved the issue.  I also uninstalled/reinstalled Microsoft.net Framework 4 since this was suggested by Apple support.  This also has not resolved the issue.
    When I reinstall I Tunes, I get a message that the “Service ‘apple mobile device’ failed to start.”  Verify you have sufficient privileges to start system services.  I attempted to manually start the Apple Mobile Device service but get a pop up stating, “Error 1053: The service did not respond to the start or control request in a timely fashion.”Unsure what I should try next. 

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component, such as Apple Mobile Device Support, won't install normally.
    In your case I suggest you start with a clean download of the setup file using the direct link. If reinstalling AMDS alone doesn't work try tearing everything down again.
    tt2

  • Tab not getting focus on left-click after suspend in Windows 7 64-bit.

    When I left-click on a tab in Firefox 4 rc 2 after my pc wakes up from suspend in Windows 7 64-bit the tab is not getting focus. I have to use the hotkeys in order to move to that tab. My mouse works fine in other programs.

    I have an imac
    I have an magic pad (same thing as the touch pad on a macbook really)
    I have an usb mouse I use both in windows and osx
    if your trackpad somehow was registered as actived for some reason it would seem as if it was the mouse
    had some *** situations both in windows and osx when my cat sit on the magicpad

  • Lately, I've been getting a blue screen in the midst of working and have to do a cold reboot to end it. Seems to happen when I'm closing windows or quitting applications. Not always, but sporadically. What causes this? I'm using 10.6.8 on early 2011 MBP.

    Lately, I've been getting a blue screen in the midst of working and have to do a cold reboot to end it. Seems to happen when I'm closing windows or quitting applications. Not always, but sporadically. What causes this? I'm using 10.6.8 on early 2011 MBP. Thanks for any help/advice!

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • While using oracle forms 6i and database 11g in windows 7, the application getting closed while working on some forms

    Hi,
    Please advise on the below issue.
    While using oracle forms 6i and database 11g in windows 7, the application getting closed while working on some forms.
    May i know what is to be done?

    MoNo wrote:
    Hi Friends...
    I'm using windows7 32 bit.
    <snip>First, please be aware that oracle products are NOT certified to run on ANY 'home' edition of ANY version of Windows.
    Second, did you read the instructions on the page where you downloaded the software -- specifically the part about unzipping TWO downloaded zip files into the SAME directory?
    Third, did you read and heed the installation guide, or did you just go straight to 'setup.exe'?

  • When I download itunes I get apple application error 2 on windows 8

    When I download itune I get apple application error 2 on windows 8

    See Troubleshooting issues with iTunes for Windows updates. Use the steps in the second box to repair your iTunes installation. Your library should be unaffected by these steps but there is backup advice elsewhere in the user tip.
    tt2

  • [OpenBox] Window not getting focus if skip_taskbar is set to 'yes'

    I have bound gmrun to ALT-F2. When I have skip_taskbar set to yes in rc.xml, gmrun does not get focus. This is quite annoying as I have manually click on it to get the focus.
    <application name="gmrun">
    <position>
    <x>center</x>
    <y>center</y>
    </position>
    <focus>yes</focus>
    <layer>above</layer>
    <skip_taskbar>yes</skip_taskbar>
    </application>
    If, however, I remove skip_taskbar as shown below, gmrun get its focus when launched.
    <application name="gmrun">
    <position>
    <x>center</x>
    <y>center</y>
    </position>
    <focus>yes</focus>
    <layer>above</layer>
    </application>
    * Same issue with mplayer/terminal - Doesn't get focus when skip_taskbar is set to 'yes'.
    Last edited by keerthi (2008-10-03 19:45:36)

    I have the same problem, but, and this part is really bad, I also mostly don't have this issue.
    So I can't help except to say I run OB 3.4.7.2 and [sometimes!] have the same issue as you.
    -dav7
    Last edited by dav7 (2008-10-04 03:49:06)

  • How to stop preview window from automatically getting focus when you move up/down the message list.

    Since updating (my TB was a few versions old) to 31.2, the preview window automatically gets focus when I move up/down the message list. I'm assuming this is a new "feature". Is there a way to shut this off and leave the focus on the message list so I can navigate up/down like before?

    You are referring to the 'Message Pane' which displays selected opened emails below the list of emails. It is not a 'preview'.
    When you select an email by either using mouse to click on an email in the list or using the arrow keys to select emails up and down the list, you are selecting an email to open and read. That is why it is being opened in the Message Pane so that you can read it.
    If you select an email in the list and then cllck anywhere else including in the Message Pane, then you will have moved focus away from the list and the strong highlight on email in list is reduced to paler highlight.
    When you click on an email in the list, the email becomes highlighted, at this point you can use eg: arrow keys to move up and down the list.
    If you are performing single left click on email in list and then do nothing else and the strong highlight auto changes to paler highlight.
    Check you do not have a conflict with an addon by starting Thunderbird in Safe Mode.
    Help > select 'Restart with addons disabled'

  • WebHelp - With help window open, second application click does not bring help window back into focus

    Hello all,
    Using RH11 to create context sensitive WebHelp for use with apigee-to-go console.
    Console allows URL calls to launch help in a new browser window (named within the help project).  Works fine except that the browser help window does not regain focus when subsequent context calls are made from the application.
    Steps:
    With application running in a browser window, I click a help link.  New browser window opens with correct help topic displayed.
    Return to application without closing help window.  Application window takes focus; help window moves to back.
    I click another help link. Help window does not regain focus.  However, it DOES move to the correct topic.
    I've tried lots of things.  Nothing seems to fix this.
    For reference, my context call looks like this:
    http://<URL>/index.htm#<id=37>>wnd=HelpPopup
    Thanks for any help anyone can provide.
    Jeff Seltzer

    Thanks for the responses, but this doesn't really help.
    I'm using a simple URL to make the call.
    (That's all I can do within the web app API console I'm working with.)
    If I knew how to crack open all of the javascript that RH creates (and had that much time to work on it), I'd try to address it.
    I have to give up for now.
    I've just appended >>newwnd=false to the end of my calls, so the help appears in another browser tab, rather than its own window.
    This isn't great, since each call opens a new tab, but that's better than the help window disappearing behind the sea of open windows most of us have going on, only to cause the user to hunt for it (if they even know it's there).
    So, <URL>/index.htm#<id=37>>wnd=HelpPopup
    becomes <URL>/index.htm#<id=37>>wnd=HelpPopup>>newwnd=false
    Thanks all for your pointers.
    If I ever find the time to really work on this issue, I'll post a fix (if there is one).
    (Again, I suspect this is just buggy RH javascript.  RH knows enough to update the contents of the help/browser window, but not enough to focus it.)
    Best,
    Jeff Seltzer
    RoboHelp user since v1.1

  • When does a selection in a text field in a Finder window lose focus?

    Hello,
    this problem has emerged on account of an Applescript file that needs to access a text selection (portion of a filename highlighted) in an open Finder window.
    The bare minimum code to demonstrate the problem is this:
    *tell application "System Events"*
    * *tell process "Finder"*
    * *set selText to value of attribute "AXSelectedText" of text field 1*
    * *end tell*
    *end tell*
    other variants also exist, using "keystroke" but that does not work either. I am not asking help with Applescript here, it is here only to give a sense of the problem.
    My conclusion thus far is that the selection lose focus before the script process can access it. In the best case I get the full filename by using "attribute" and copy of the alias onto the clipboard by using "keystroke".
    So my problem is this:
    It seems that the focus stays alive when one clicks on a menubar item, any click on any other item on the desktop, including windows of irrelevant applications, changes the focus from the selection within the text field corresponding to a filename, to the filename itself.
    And my question is this:
    Is there a changeable setting within the OS that has to do with how long the focus stays alive on a selection within a text field corresponding to a filename? If yes, how do I change it?
    Thanks

    baltwo wrote:
    Thanks for clarifying. Never heard it called a text field, just a label. So, exactly what are you trying to accomplish? Is it that you want AS to select the file, highlight its label so you can edit/change it with some other text? If so, have you checked out the Finder scripts installed on the machine, especially the Finder script *Add to Finder Names*?
    UI Element Inspector calls the activated/editable filename a text field.
    Actually I want to modify one of the stock Finder scripts. I want to be able to select part of the file name in the active text field of the Finder window, then activate the script, *have the script pick up the selection* as a text string then use it internally.
    The bolded step is the one in question.
    Every attempt fails on the fact that the focus is lost from the "text field" and it reverts to the label for the filename, if I may use this distinction, (or to "FinderItem" in the parlance of UIEI) as soon as another process begins, it seems. So when the script becomes active, but before any of the commands is executed, the selection disappears.
    My guess is that it is not some absolute necessity but a setting that perhaps can be changed somehow.

Maybe you are looking for

  • Package does not exists

    Hai I want to use the package com.jscape.inet.ftp in my Java program. But when I imported it in my program and compiled , I got the error:- package com.jscape.inet.ftp does not exist Why? How can I use that package in my program? Any idea?

  • Photoshop premiere elements 13 no email option under share PC

    I created a trade show ad using photoshop elements premiere 13.  I need to email this project, yet there is no email option to choose from the list under "share"  I specified outlook as my email client and I'm using a pc.  Any help would be great. Th

  • Error deleting row in table?

    I get the following error when I try to delete one row of information in a table "key column information is insufficient or incorrect. Too many rows were affected by update" Anyone know why I would be getting this error? Also, how do I get rid of a r

  • Elements 6 - animated gifs

    hi all does anyone know how you open an animated gif in pe6 for mac ? i have loads of them and all i get is the top layer and that's it is there a bug in the program ? ta

  • New computer. Can I transfer from old-how?

    New copmputer coming today. How can I copy itune program and downloaded and purchased music onto my new computer from old?