Blinking Carets shown in multiple authentication windows.

Hi,
My application pops up an authentication window (with username and password field) when the system comes out of sleep. Sometimes, the caret is displayed even if the pop-up window is inactive (ie not in focus) and when I type on the keyboard, characters go
to a different window (like IM). This may result in user typing his password in IM unknowingly (ofcourse if he is not  paying attention)
I have also observed this when a network-share authentication window pops up. Example, when I am searching the "start" menu, a network-share authentication window pops up and the caret is displayed in the search-bar and also the popup window. The
problem is not specific to my application.
As far as I know, only one caret should be displayed (i.e only by the active window with focus). Is this a bug in windows?
Regards,
Kunal

Hi Kunal,
As per the documentation of CreateCaret(), windows provides one caret for one windows message queue. It's the applications responsibility to show the caret only when its window is active or in focus. Please see the below link:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms648399(v=vs.85).aspx
In your case, you should check if your window has focus or is active. A combination of GetFocus() and GetActiveWindow() should do the trick.
Hope that helps.
(Please mark as answer if it resolves your query. Please upvote if this post is helpful.)
Regards,
Rajesh

Similar Messages

  • Authentication Window

    Hi
    I have installed Snow Leopard 4 times now and each time i get too a point that I cannot see the authentication window. First thing first. When i installed it everything was ok, i installed some software and after some time when i wanted to install something using Installer but when i get to the last part where i click install it just blinks that it acknowledge the mouse click but nothing happend (there should be an authentication window for user password but it doesn't show). The same is with locks. There are some locks in different parts of System Preferences (like in accounts) and every time i click on one i get a message authenticating (and again the authentication window should show up) but after a second or two it returns to "Click the lock to make changes.". Anybody had similar problem? It only accrues in Snow Leopard. I have tried an upgrade on Leopard aswell as a Erase and Install no difference.

    Hi my good friends,
    Are there another possible causes or solutions to this problem? I have exactly the same problem but I think it is not the keyboard layout the cause at least in my case. Snow Leopard chooses the correct keyboard layout the standard *"ANSI 102 keys US and Others"* . Also I heard that a possible cause could be duplicate fonts. I opened Font Book and clicked *"Select Duplicate Fonts"* and found some duplicates (shows a yellow triangle next to them) and then clicked *"Resolve Duplicates"* Well, that didn't do the trick neither.
    Please let's keep the brain juices flowing to see if we can fix this problem for real. Thanks very much

  • Frame skipping from the Multiple Actions window (Cp4)

    Can anyone remind me how to trigger this:
    rdcmndGotoFrameAndResume := rdinfoCurrentFrame -10
    but from the Multiple Actions window on Cp4?
    I want to show a colleague how to set up a slide with multiple images that the learner can click as many times as they like to show relevant captions (and hide previously shown ones). Obviously the big problem is stopping the project from continuing until the learner clicks a separate Continue button.
    Normally I'd use Advanced Actions and add the code above in addition to the show/hide stuff, but this time I want to keep things as simple as possible using Multiple Actions as it's far more intuitive - but it won't let me do this kind of assignment.
    Any suggestions? One of the options is to execute javascript but I'm not sure what the javascript equivalent of this is, or even how it should get wrapped up in that window.
    Thanks

    As far as I can remember, you cannot create an 'expression' like this in Multiple actions, you only have the Assign action but the system variables that you can access with Assign are limited.
    Moreover I want to warn you: Multiple actions were abandoned in Captivate 5 and later because they do not always function well. So be very careful using them.
    If you want to show this, you'll need to use advanced actions, that have the possibility to access all variables and to create expressions.
    Why do you rewind the playbar 10 frames?
    Lilybiri

  • Avoid a second authentication windows

    Hi everybody
    I have the following problem: I�m developing a three-tier application: the first tier is a swing based applet accesses via web browser. The second one is a servlet witch GET method sends that applet (that is, the HTML page, the applet class file embedded and three jar files). This servlet runs in an iPlanet server configured for require basic authentication. The problem is: When I access the servlet with a Netscape browser for retrieves the applet, it prompts for login/password. That is ok, but when the applet is download, the JVM shows a second authentication window before my own code starts the execution (that means: "I can't do anything in the code!!!").
    The problem seams to be very strange: if I use JVM 1.3, it's not necessary to write login password in the second window (you must only press enter), but with JVM 1.4 it's required for continue. I have tried with two different netscape versions: 4.7 and 6.2. With IE is worse, because the navigator doesn't download the applet.
    Thank you very much

    Hi everybody
    I have the following problem: I?m developing a
    three-tier application: the first tier is a swing
    based applet accesses via web browser. The second one
    is a servlet witch GET method sends that applet (that
    is, the HTML page, the applet class file embedded and
    three jar files). This servlet runs in an iPlanet
    server configured for require basic authentication.
    The problem is: When I access the servlet with a
    Netscape browser for retrieves the applet, it prompts
    for login/password. That is ok, but when the applet is
    download, the JVM shows a second authentication window
    before my own code starts the execution (that means:
    "I can't do anything in the code!!!").
    The problem seams to be very strange: if I use JVM
    1.3, it's not necessary to write login password in the
    second window (you must only press enter), but with
    JVM 1.4 it's required for continue. I have tried with
    two different netscape versions: 4.7 and 6.2. With IE
    is worse, because the navigator doesn't download the
    applet.
    Thank you very muchThere are several things that could be causing this.. Main assumption is that your JSP has coded the applet tag correctly. I'm familiar that there are multiple ways for webservers to handle the tag -- try ALL of them...
    Is your code trying to access something outside of the sandbox? Then you might need to sign the jars. Is your code running behind an authenticating proxy? Not sure what to do here, it may very well be necessary to re-authenticate depending on the firewall configuration. Are you sure the jars contain all the necessary classes? If not, the applet will try and get them from the codebase. This may or may not cause a login window to popup, but just food for thought.
    Have you considered using the java plug-in? Browser JVMs are different and can't guarantee you consistant functionality. Using the plug-in would guarantee consistant results. It's a pretty heavy download, but only would be necessary one time. Likewise, your applet could load much faster in that you would only need to jar YOUR classes and not the additional swing classes that the browswer jvm might not have. By the way, if you are using the plug-in and the client is behind a firewall or some sort of authenticating proxy, there are settings in the plug-in the client can adjust to alleviate problems.
    Best of luck.

  • Redirect to SAP authentication window

    Hi,
    I’ve created an application that requires authentication (sap.authentication value true on application properties).
    Initially, when the user starts the application, he has to login using a default authentication window provided by SAP.
    How can I perform a logout and redirect to the default authentication window?
    Thanks in advance,
    Ricard.

    Oscar,
    The code should be even simpler:
    WDClientUser.forceLogoffClientUser(null);
    Cut form doc:
    <i>url - the URL of the page that is shown to the user after logoff was done. If the parameter is null, the redirect is done to the "LogoffURL" URL that can be specified in the application properties. If this URL is also not defined, a redirect to a Web Dynpro internal logoff page is done.</i>
    So you may either accept default logoff-page (just text "Web Dynpro application terminated. Good bye!" or provide your own page via application properties).
    Next, it is impossible to just log-off to auth screen. It is necessary to set as log-off URL some application that requires authentication also.
    This way WD will first log-off user, then shows auth-screen and then login him again to the target application.
    So try the following:
    1. Use code with null URL, forget about WDConfiguration.
    2. In NW IDE open your application properties, and add standard property "log-off URL", for example "/useradmin/userAdminServlet?userProfileView";
    This works for me (first application may be either with or without auth). My environment is NW04s, but this should work on NW04 as well.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • In my Apple Macbook Air, most of the USB Flash/Thumb Drives are not shown in the Finder Window. Only a few Brands of USB /Flash Thumb Drives are shown or compatible or shown in the Finder. How do I use any Flash/Thumb Drive with my Apple MacAir?

    In my Apple Macbook Air, most of the USB Flash/Thumb Drives are not shown in the Finder Window. Only a few Brands of USB /Flash Thumb Drives are shown or compatible or shown in the Finder. How do I use any Flash/Thumb Drive with my Apple MacAir?

    Yes, junker thumb drives pour like rain in the market.  
    Which makes are working on your Air, and which arent?
    Stick to Sandisk and a couple of other reliable mfg. of memory sticks

  • Can't open multiple FF windows anymore

    Hey there,
    maybe two months ago I updated to FF 31.0 and then the problems started.
    The first thing I recognized, one of my AddOns didn't work as usual, but I thought
    "ok, new FF version, maybe in one or two weeks it'll work as well"
    Then I recognized that I can't open anymore multiple FF windows. Tabs works as
    usual, but there is no way to open more than one window. I tried:
    - Strg+N
    - rightclick on tab and "open in new window"
    - drag&drop tab outside of the FF window
    ... nothing works!
    A new update of my AddOn was released, but this didn't change anything.
    Then I exported my Favorites, uninstalled FF 31.0 and installed 32.0 beta.
    I reinstalled my AddOn, few days ago I installed 33.0 beta - always the same!
    Please gimme some advice =)

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Managing Multiple Dynamic Windows (AJAX/HTML)

    Looking for a little direction on managing multiple dynamic windows. Creating windows that can be identified, and altered potentially, from the main window. Also, testing to see if a window already exists.
    Any help in idenitifying windows would be great. Just looking for a little insight to get me going.
    Thanks

    I figured out a way around the dynamic window references. Not truly the ideal solution however it works. I essentially created an array just for window instances. On window creation, I add a reference to it within my window array. Then reference the array to see if the window reference exists. If so, then do nothing. If not, then I can create the new window. On close of the dynamically generated windows, I remove the reference to it from my window array.
    It works, but I feel this is not the most ideal way to do it. If there is another solution or approach that may be easier please feel free to add it.

  • In 4.0.1, if I have multiple firefox windows open, when I try to close one window, it closes all. Why can't I close just one window at a time?

    I open multiple Firefox windows so that I can quickly Alt+Tab between windows instead of using my mouse to point to tabs. When I close one of my Firefox windows, the browser closes all my windows. What happen to the "Close" feature under the File tab? Why don't I have the option to close only one window at a time?

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • Why do multiple Download windows pop up when I download a PDF or other file?

    Everytime I try to download a file (PDF, JPG, DOC) that was attached to an email (I am using Outlook WebMail) the document will download fine HOWEVER eight (8!!!) or more Download windows pop up as if I tried to download that file eight (or more) times.
    So then I have to "X" out of each window after downloading one file. It is the same file listed on each popup window.
    Since this is a new problem I tried shutting down the computer and restart but not successful.
    Firefox 26.0
    Any help...PLEASE!?!?!?

    THANKS Waka_Flocka_Flame!!!
    (I pressed the "Problem Solved" button however it did not give me a chance to type anything so I found the thread and pressed "Reply")
    Anyhoo...I went to Safe Mode and Firefox worked great. Went back to regular mode and again multiple Download windows when trying to download a file.
    I then did as you suggested and poked around in the Add Ons and there was something called Download Manager Tweak that was upgraded last week and that was when the problems started. I got rid of it and my Downloads are working great.
    THANKS AGAIN!!!

  • Installing AUTHENTIC windows 7 ultimate 64bit on Macbook Pro - ERROR, help!

    I am trying to install windows 7 ultimate 64bit (not the beta or RC, this is an authentic windows 7 DVD -- signature edition) on my macbook pro using Bootcamp. When the computer tries to reboot, i get a message that says:
    1.
    2.
    select cd-rom boot type:"
    I saw forum posts with this problem where people were using improperly burned windows 7 versions, however, this is not a burned DVD -- its authentic from microsoft. This means i cant reburn the dvd...
    Any suggestions?!

    Did you by any chance install Snow Leopard on your MacBook Pro?
    My MacBook Pro was working perfectly fine. Installed windows many times the last 2-3 years and never had problems.
    I installed Snow Leopard a couple weeks ago and since then I get this exact same error with all my Windows Install discs (ones that always worked before!).
    Whatever I do. I can't get any Windows installed anymore.
    The discs are fine, Bootcamp menu reads it and recognise it. But the moment you try boot from it you end up with the error the OP is describing!
    And all this, after I installed Snow Leopard. Restoring to previous versions of MacOSX did not help!
    So it seems that the Snow Leopard installation does something to the DVD drives on the MacBook Pro's (upgrading firmware whatever) and now it's ruined!!

  • Best way to manage multiple Help windows

    Hi all:
    I'm working with X5 to create Help for a large modular
    application. I have a single Help project, but want to deliver help
    content only for the specific modules used by clients. I'm
    attemtping to create multiple Help windows with a Main window
    containing Help for standard deliverables and other windows
    containing Help for specific modules. What's the best way to
    achieve this using a single project. Or do I have to maintain
    multiple projects?
    I tried using customized windows but there are some
    limitations. I manually created a new hhc file for a custom window
    and it's working fine. But, I cannot open the custom window by
    clicking a book in the TOC (which is what I want) of the main
    window but can do so by clicking a topic. Also, I cannot assign
    separate default topics for each custom window. Further, when I
    click a hyperlink in a custom window that links to a topic in the
    main window, the topic from the main window displays in the custom
    window but it's not listed in the TOC of the custom window, so
    that's awkward.
    Please help!!!
    Romeo Coutinho

    From the user's point of view a merged set of help files is
    probably the best solution. Using global windows the whole help
    system is displayed in one window and shows only topics for the
    modules installed (if you can get your setup people to comply with
    your wishes that is ;-) ).
    Handling multiple projects is not more complicated than
    handling a big one. Each help topic only exits in one project; if
    you want to create or update the help for module XYZ_1, you open
    project XYZ_1. If you want to edit a topic in the project Master,
    you open project Master. After editing a project you compile just
    this module and nothing else.
    The only thing you have to learn are the peculiarities of the
    help compiler regarding merged projects. Refer to
    http://www.helpware.net/htmlhelp/how_to_merge.htm
    for a good description of these kinks.
    ---Dirk Bock

  • ITunes 11 bug - no more multiple playlist windows

    Hi - Please Apple, restore the multiple window feature in iTunes so I can copy between playlists and easily add individual songs from a CD to a playlist.
    Why would this useful feature be removed from iTunes?
    I can only think that someone forgot to give the "multiple open windows" use-cases to the people testing iTunes 11.
    I mean, really!

    1.  This is not a bug.
    2.  Apple doesn't respond on these forums.  It's a user to user support forum.
    If you want to give feedback, go to apple.com/feedback.

  • Multiple authentication sources with the same category

    Quote from portal help:
    "Multiple authentication sources can use the same category. However, because the prefix is prepended to the user and group names, you need to be certain that the domains involved do not have different users or groups with the same name. That is, if a LizaR user exists on one domain, and a LizaR user exists on another domain, they must be the same user because only one user will be created."
    Fine, let's say I am "certain that the domains involved do not have different users or groups with the same name".
    But there is other concern I have here. I want to know how portal will RECOGNIZE which authentication source to use?
    Let's say I have 2 auth sources AS1 and AS2 with the same category MyAuth. AS1 use WS1 to authenticate against LDAP1 and AS2 use WS2 to authenticate against LDAP2.
    Now, I have a user - Dmitry. I am trying to login into portal and I selected AS1 to do actual authentication. My question is how portal will CHOOSE which auth source to use because all portal knows about me is <MyAuth\Dmitry> that is came from portal login screen? Both auth sources match this pattern so seems like portal may choose any of them.
    Does it mean that portal will try to authenticate again AS1 and if this attempt failed then you AS2?
    I didn't find any explanation in portal documentation.
    Thank you.
    Edited by Bryazgin at 12/12/2007 10:42 AM

    Yes, it seems you are right. As soon as portal have found CORRECT user there is no issue anymore because user is bind to unique auth source that actually has been used to created this user.
    I think my main confusion come from the fact that having <Category> and <UserName> is not enough to UNIQUE identify user in portal as soon as <Category> can be the SAME for different auth sources.
    Let's have you have user created by AS1. According API this user created by this AS1 will have 4 different names, like sUniqueName, sAuthenticationName, sLoginName and sDisplayName. But portal is going to search user in portal database BASED on information that is available in login form - <Category> and <User Name>. At this point portal has no idea about sUniqueName and all this things.
    Now if there were 2 users in database that have been created by 2 different auth sources with the same <category> and <User Name> then I don't understand how portal will figured out which user to choose from. I guess <Category> value somehow MUST participate in sUniqueName value. <Category> has to be involve in process of finding user in database. In this scenario 2 users will be retrieved from database and what is important these 2 users are different, they have been created by different auth sources. Now question became which user is CORRECT one?
    Edited by Bryazgin at 12/12/2007 1:34 PM

  • Viewing multiple application windows simultaneously

    Is it possible to view (float) multiple application windows simultaneously on a MacBook. For example, I am viewing a tutorial on Firefox while working on an image in Photoshop at the same time to try out the suggestions in the tutorial. I have to shift from one application to the other (command + tab) to go back and forth to view one or the other window. It would be great to be able to "float" a window from Firefox over the Photoshop window so I could read the tutorial while working in Photoshop. Right now, if I click on one application, it covers over the other application completely, requiring that I switch back and forth between the two. If an application window (Firefox tutorial) could float above the other one (Photoshop image), I could read the tutorial while still working on the Photoshop image.
    Any suggestions greatly appreciated.
    [email protected]

    You could resize the windows so that both fit on the screen. Granted the screen size doesn't afford a lot of space for this so I have come up with 2 different methods for solving this problem. One is using Spaces. If application A is on one Space and B is on another, using a hot corner or keystroke can change from A to B quickly. My other solution was adding a 21.5" monitor to my work station giving me enough screen real estate for multiple window display.

Maybe you are looking for

  • My Nike sensor is not working in ipod touch

    My Nike + Ipod sensor is not working in Ipod touch. I tab on it and it opens up saying walk around to activate the sensor, I walked couple of times, jogged, ran, but the sensor is not activating..Any settings to be changed or what should I do to get

  • External Hard Drive using 7 port hub

    Not sure if anyone has had this problem but I thought I'd mention it in case it helps someone. I have a 20 inch iMac (Intel) 500 G, 2 G RAM operating system OS X 10.5.8 and purchased Seagate GoFlex Desk 2 T External Hard Drive to use to store picture

  • I lost my ipad, how to do the report on apple offical website?

    i lost my ipad2 recently, that taker very smart, he use offline, and i can't found my IPAD from me.com so i decide to do some report on apple offical web, make sure that guy can not fix it in every place. thank you

  • Automator - Metadatamover dont move, only copy files

    Hello, i wanto to create the following service in automator to rename image files and move the renamed files to a created folder. My workflow will be -> mark files, right click -> choose Rename Service -> Insert target folder Name -> Folder will be c

  • Not your normal How to Transfer issue

    I am buying three iPod's for nieces and a nephew for christmas and I am wanting to add off of my CD (not an iTunes bought one) so they have something to listen to christmas morning. Now what I don't know is how does this effect them taking them home