Send focus back to main VI window

Actually, the scenario is a bit more complicated than the subject describes.
There is a main VI which has a user interface and uses an Event Structure to capture / process operator events.  This same main VI also calls Dynamic VIs.  One of which has its own Event Structure.  The code for both VIs was developped using LVOOP.
There are hotkeys associated with the main vi.  However, because the main VI spaws the Dynamic VI, the Dynamic VI has the active window.  As a result, all keyboard events are being processed by the Event Structure of the Dynamic VI (of course).
However, when a keydown event is triggered, it should be captured by the main VI.  The code architecture cannot be changed.  What would be an appropriate method to either make the main VI the active window (thus able to process keyboard events) or to be able to pass keydown events along with the captured event to the main VI without making an overhaul of the architecture?
Some ideas would be to register external events (which are sent to the main) and create a keydown event in the Dynamic VI.  This may require implementing a queue.  Or since the code uses LVOOP, then creating a lvclass to handle keydown events might be the way to go.
I simply want to get some feedback on potential "gatchas" that may be lurking when trying to implement a solution.
Or maybe there is a simple trick that I have not considered.
Thanks,
RayR
Solved!
Go to Solution.

Felix,
The example you suggested was exactly what I had in mind.
Strangely... I'm sure I tried the FP.ISFrontmost property before..  But I can't remember... But if I did, I suspect I put it too close to where the Dynamic VI was being called, thus causing the main VI to be frontmost to then be superseded by the Dynamic VI which takes a while to fully load and execute (lots going on).
I placed the FP.IsFrontmost in the default "idle" state and it solved it.  I will try to find a better place so that it does not get called all the time.. Although it might not hurt anythong other than performance.  At least I have a solution.
Thanks guys!

Similar Messages

  • Link in report that sends user back to original browser window

    Greetings:
    I have a link in browser A that opens up a new browser window B and runs a report. Within this report in browser B, I have a column whose values have links. When the user clicks on the link, I want to redirect back to browser A to run a query that displays detailed information about their selection. Browser B would remain open.
    Within the link in browser B, how do I redirect back to Browser A to run this query?
    Any help would be appreciated.
    Thanks,
    Stan

    if i have understood your question properly then this is what you need to do.
    1. Edit the report which is opening in browser B.
    2. Edit the column which contain the link.
    3. Go to link tab.
    In link text - click on first option. You will see #COLUMN_NAME# in the link text.
    In target select URL
    in URL textbox enter - javascript:onclick=refreshParent(#COLUMN_NAME#)
    Click on apply change.
    4. now enter the following in the html header of the page
    <script>
    function refreshParent(serach_key)
        opener.$x('P1_XYA').value = search_key;
        opener.doSubmit();
        self.close();
    </script>See example
    http://apex.oracle.com/pls/apex/f?p=12060:20
    Regards,
    Shijesh

  • My podcast icon is now part of music icon. How can I send it back to main menu

    Podcast icon

    Right-click on a toolbar, select Customize. You can then drag and drop the Home icon to the right side of the toolbar. Click Done to complete the process.
    https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • How to keep notification window from stealing focus from main AIR window

    Hi,
    We have an AIR (JavaScript based) chat application that uses the technique posted at the following link to display a notiifcation window each time the user receives a new message.  The notification window gradually fades away after 5 seconds.
    http://cookbooks.adobe.com/post_Creating_a_transparent_notification_window-8226.html
    The technique uses HTMLLoader.createRootWindow to create and display the notification window.
    The issue we are having is that the notification window steals/removes focus from the main AIR window, which is annoying if you are in the middle of typing a message that you want to send to other users.  Once the notification fades away, focus is returned to the main AIR window.
    I searched the AIR documentation to see if there is a way to keep the notification window from stealing focus, but came up empty.  I'm hoping I'm overlooking something.  Can anyone help out?
    Thanks,
    Denis

    Ahmed if i did recognize ur question then...
    Pls Follow this...
    1 - Create New Menu Item Called Window it's properties > Menu Item Type = Magic
    2- Menu Item Type = Magic.
    3- Change Magic Item = Window
    4- Command Type = Null.
    5.Visible In Menu = Yes.
    6.Under Physical 's node >Visible = No.
    Hope this helps...
    Regards,
    Amatu Allah

  • Windows always "send to back" when I open an application, so I cannot edit anything

    Hi,
    I just updated my "OSX Snow Leopard" to OSX Lion last night. But something wrong with the windows when I first use the system today.
    When I only an application such as MAIL, after about a second, the window will be "send to back" automatically - the window became gray and I cannot edit anymore. That means I can use the window for one second then I have to clike the window again to let it in front!
    That drive me crazy. Any suggestions?
    Or just tell me how to reinstall the OSX Lion system!
    Thanks.

    You may have the Safari window in Full Screen mode.  This is where an app's window (Safari in this case) takes up the full screen, as a "space."  When you run another app, the Safari full screen space moves over to take you back to the Desktop space, to open the window for that other app.
    To take the Safari window out of Full Screen mode, move your mouse pointer to the top of the screen, to drop down the Menu Bar.  At the top right corner of the screen, cick the button with the two arrows pointing in.  This takes the window out of Full Screen mode, back to the Desktop space.

  • HT4623 The APP application on my iPad does not function properly - any downloads requested immediately fail and send me back to the main iPad screen.  Any suggestions on how to fix this - all software has been updated to iOS 5.1.1 and no other updates are

    The APP application on my iPad does not function properly - any downloads requested immediately fail and send me back tot he main iPad screen.  Any suggestions on to hoe to fix this?  The software has been updated to iOS 5.1.1, and no furthe updates are available.

    This is my boilerplate response when app downloads are stalled or in the "waiting" mode. There are a bunch of things here to try.
    Tap on the "installing" icon and see if you can pause the install, then tap on it again in order to resume the install.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download and install at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and see if the install resumes.
    If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • I cannot open my apps on my iPod touch 4th generation. Every time I open an app it sends me back to the main page

    I cannot open my apps on my iPod touch 4th generation. Every time I try to open an app it sends me back to the app selection thing.

    Try a hard reset first. Press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    If still no luck, try downloading and installing a new app from the App Store.  Doing so has cleared the issue up for several users.
    B-rock

  • When i click a link on (facebook, google, yahoo, etc) it sends me back to my home page. It has done this at least 5 times only starting yesterday the 29th, one of numerous issues arrisen since the newest 4.0 security update.

    This issues persists mainly on my two most frequently visited sites, Facebook, and deviant art. When I click any random link on any random page, the link would send me back to my home page, as if i had clicked the back button when i hadnt. I cant specify what links specifically, but it has done it twice on my facebook home page, once on a google search and several times on Deviant Art. On Deviant Art, I was several pages into the site when i clicked on a users gallery and it sent me right back to google, the back button wasnt active, but the forward button was, when i clicked the FORWARD button it went right back to my last page, just as if i has hit BACK. This problem has only been apparent for the last 2 days since the 29th, and only after i installed the last security update provided by the firefox team. seems like a bad coding error that mixes up and redirects addresses, that would be my guess.

    adkennon wrote:
    And maybe you don't talk to too many people but I've been on many forums on different websites where people have had similar problems and a lot of people in the store were having battery problems where they were draining too fast. What I learned is that all the people who did not download the updates are good. There phone is working the same. The people who have, they're having battery problems
    I have downloaded every update and my battery life is better than any previous iPhone I have ever owned. I see posts from hundreds of people every day, and this is not a commonly reported problem. While there are a few random reports of battery problems, it is no more than I have seen for any other model or any other version of iOS in almost 8 years. Usually problems of rapid battery drain can be traced to bad apps (FaceBook is the worst offender) or corrupt data being synced from iCloud or other sources (gmail, Windows Live, Yahoo, etc).
    The simple test is to restore the phone as New. Do not create any email accounts. Do not install any apps. Do not enable FaceTime or iMessage. Do not enable Twitter or any other social networking app. Use it for a day and check the battery usage. You will find that it is working well.
    And also see this: http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain. It is the best treatise I have seen on the subject of battery usage.

  • Unsolicited ad inserted behind main browser window (pop-under)

    Unsolicited ad inserted behind main browser window (pop-under) every time TheBlaze.com is visited.
    ENVIRONMENT
    Win7 SP1
    Firefox 34.0 (Pop-up windows are blocked)
    DESCRIPTION OF PROBLEM
    Once the requested home page, from theBlaze.com server, is received by Firefox on your PC, your first mouse click will trigger the pop-under creation process. Pop-under ads are similar to pop-up ads, but the ad window appears hidden behind the main browser window rather than superimposed in front of it. The ad window is located in a new copy of Firefox. Additional mouse clicks may produce cumulative pop-under ad window creations. So, you may end up with multiple pop-under ad windows, each in a new copy of Firefox. According to many marketing “genius” this method of presenting unsolicited ads is much less abrasive than pop-ups used to be, and now recommend the use of pop-unders.
    The HTML source file received from TheBlaze.com server contains (in clear) between line 158 and line 202 , the JavaScript code needed to generate the pop-under windows and also contain the URL of the advertiser.
    Line numbers may vary from user to user, but look in the source file and locate the beginning and the end of the script at:
    BEGIN ADSUPPLY →
    the script is located here (approx 44 lines of code)
    <!-- END ADSUPPLY →
    The fact that the advertiser URL is contained in the source file indicates that, this is a well organized advertizing business. In the examined case the advertiser was "gorgonkil.com".
    SOLUTIONS TO STOP POP-UNDERS
    This pop-under unsolicited ad plague can originate from any Web site, not only from TheBlaze.com. This is not hidden malware, but highly visible in the HTML page received from the unscrupulous Web site. Be aware that using the “block pop-up windows” parameter in Firefox > Tools > Options > Content > will not solve this problem.
    InternetExplorer 11 also falls victim of the pop-under unsolicited ads. SlimBrowser7 survives elegantly and no pop-under windows are opened.
    In the proposed 2 solutions, you will need to receive a first unsolicited ad, then take note of the advertiser URL and insert it in the Win7 Firewall or in the BlockSite Firefox extension.
    If the unscrupulous Web site sends a large number of new and different advertiser URLs during one browsing session, then you will need to find a more elegant solution to the problem.
    WIN7 Firewall
    The received ad normally contains the advertiser URL (e.g. gorgonkil.com).
    The Win7 firewall has the capability to block IP addresses.
    The fact that Win7 Firewall requires IP addresses be expressed in dotted-decimal notation (e.g. 172.16.254.1) makes it less attractive. But, should you decide to use the dotted-decimal notation, it should work perfectly
    Block Site 1.1.8 Firefox extension
    Install Firefox extension “Block Site 1.1.8”. It is working very well for me.
    You need to go to Block Site “Options” and “add” the URL (e.g. gorgonkil.com) you want to block.
    Once enabled, the Block Site extension will display a small window for 3-4 seconds (lower right position) every time a pop-under creation is attempted by any unscrupulous offender and the pop-under will not be created.
    My own “Options” file now contains more then 18 advertiser URLs (over 3-4 months).
    I have stopped visiting TheBlaze.com Web site as of yesterday.
    WEB SITE REPUTATION & REVIEW SERVICE
    You may obtain a reputation rating for many Web sites by installing a Fiirefox extension: Web of Trust - WOT
    WOT adds intuitive traffic light-style icons next to search results and URLs to help you make informed decisions about whether to visit a site or not.
    A review has been submitted to WOT (12-19-2014) pertaining to TheBlaze.com. The rating is in bright red “I don't trust” (Ads/Pop-ups).
    deBeaujeu

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Can't see main mail window???

    Ok so I upgraded to Lion and I can launch mail and I can create and send new messages but the main mail window will never show. So I can't actually see any messages or folders or anything. I can get connectivity doctor window to show and everything connects and shows fine. If I do cmd+0 to show message viewer that won't show.
    Any idea's on how I can get the main mail window to show up again?

    Hi Garrett,
    Thanks for your post. This helped me where Applecare could not.
    I had the same problem as you after migrating my system from Snow Leopard to Lion via a Timemachine back-up.
    I suspected that your solution could help me, but unfortunately in Lion there is no longer a visible ~/Library in the home folder.
    I noticed that there was a new and unexpected "folder" in the sidebar of the normal folder pain view. This object was a sprocket (like the one next to the inteligent folders in "Mail"). I klicked on it and got a search result of items from my missing "Mail" file structure as if I had used Spotlight to search for them. By going a few levels up the file path I was in the invisable ~/Library folder with the /Mail folder visible. I trashed the entire /V2 folder (which was a mistake because all of my old emails are now gone) and restarted "Mail". "Mail" is now working as expected.
    Thanks.
    I hope that this may help enyone having this problem with a migration to Lion

  • I am having trouble setting up icloud it keeps sending me back to install instructions and I'm just getting frustrated. So far I'm not liking the new itunes I can't figure out how to  look at my duplicate music like I used to.

    I can't sign on to icloud. It says I need an icloud account. I click the help option it send me back to the same page. I reinstall it nothing.
    Download the iCloud Control Panel.
    To enable iCloud on your Windows PC, first set up iCloud on your other devices, then install the iCloud Control Panel for Windows (Windows Vista with Service Pack 2 or Windows 7 required).
    ok I can't seem to set up iCloud on any device I don't understand... Ive already installed it three times.
    Turn on iCloud.
    From the Windows Start menu, choose iCloud Control Panel.
    Enter the Apple ID you used to create your iCloud account and select the iCloud services you’d like to enable.
    For mail, contacts, and calendars, you can use iCloud.com or Outlook 2007 or later.
    there is no iCloud control panel but I click on i cloud. Then entere the Apple ID you used to create your iCloud account - WHAT!!!!? where is this I keep trying to find out how to create and iCloud account but I keep getting these stupid directions!!!
    Enable automatic downloads.
    To enable automatic downloads for your music, apps, and books, open iTunes > Edit > Preferences > Store and select Music, Apps, and Books.* (Requires iTunes 10.5 or later.)
    - This is the only step that makes sense and already did it...
    Turn on iCloud for the rest of your devices.
    To get the most out of iCloud, set it up everywhere.
    This is soooo frustrating!!!!
    Also I want to be able to look at duplicate songs on my itunes but after I downloaded the new version I can not figure out how to get that back. If the duplicate setting isn't in the new itunes I want the old version back.

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

  • HT4914 I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync play

    I often record songs at a particular tempo, iTunes Match will then match it and send it back to me at the original tempo, is there anyway I can stop some songs from being matched. At the moment I have turned match off. But I would like to sync playlists.

    How old was this backup? It sounds like it was at least several weeks old.
    You can look directly in the TM backup for the music.
    1. Connect to the external HDD the backup is kept on.
    2. Open a Finder window and select the backup drive in the left hand panel. Double click into the folders until you see a list of folders with dates.
    These are the incremental backups. You can start at the top or the bottom of the list but I suggest you double Latest/<HDD Name>/Users/<Account Name>/Music/iTunes/iTunes Media/Music. From this location you can start looking for the "missing" music. When/if you find it you can simply drag-n-drop to ~/Music/iTunes/iTunes Media/Music on the internal HDD.
    If the music is actually not in the backups (for whatever reason) then you've got a problem.
    You can download the uploaded files from the cloud by deleting the affected tracks from the iTunes library (but not the cloud!), highlighting multiple tracks at once, right-clicking and choosing "download."

  • How can I restore Thunderbird behavior so I can delete emails by pressing delete key multiple times (without using mouse to change focus back to message list)?

    Thunderbird 24.3.0 (latest under OpenBSD)
    I (like most people) get spam in my inbox. When there are multiple spam messages in a row in my inbox I used to click on the first message and then press the delete key repeatedly for each sequential spam message.
    After upgrading, this doesn't work. Instead, when I click a message it opens in the message preview pane and moves the focus to the message. Thus I need to click twice to even be able to press the delete key to delete one message. When I press the delete key, the message is deleted and the highlighted message becomes the next one in the list. This opens the message in the preview pane and again shifts the focus to the message. Thus I can't press the delete key again but must move the mouse to click on the message before I can delete it.
    As a result, what used to be a very fast process of weeding through spam has become a real annoyance.
    I realize I can hide the message preview pane to prevent the focus from moving, but this means I must delete solely based on the email subject/sender -- or open each message (which is even slower).
    I also realize that I can press tab multiple times (sometime 4, sometimes many more) to shift the focus back but that's not much faster than using the mouse.
    How can I prevent Thunderbird from shifting the focus away from the email list panel unless I actually click somewhere else?

    Well said! And you said it about six weeks ago. And 4 other people said "Me Too." - I guess we're screwed.
    I guess it's time to switch to GMail.
    Such a trivial thing, but it irritates me every single time.
    MOZILLA - YOU'RE GOING DOWNHILL...

  • Main view window locked on 'one pic at a time'???

    My main view window ... somehow I locked it into displaying only one-pic-at-a-time. Can't seem to get back to the library mode, or whatever it might be called, when I can see all the pics in the folder at the same time. I can't for the life of me figure out how to change the view mode. And the scaling control, bottom right, has disappeared (or I've somehow disappeared it).
    Any help would be most appreciated...
    Ben

    Thank you Ian,
    Aie yie yie. I cycled through the V yesterday ... and somehow never got to that thumbnail view (go figure). But it worked first try this morning. Maybe my Mac was tired yesterday, like me.
    Much appreciated,
    Ben

  • 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.

Maybe you are looking for