Menu

Feature request - Auto Type

DSI - CCVG
2019-09-23
2019-09-26
  • DSI - CCVG

    DSI - CCVG - 2019-09-23

    Hello Everybody,

    Imagine a web site with Title A - connection in the window title and another one with Connection in the window title

    Even if I create one entry with the tag Title A - connection and another one with the tag Connection, the two entries will appear when i strike CTRL+SHIFT+ A because the advanced option is :

    an entry matches if one of its tags is CONTAINED in the target windows title

    Could it be possible to have this other advanced option :

    an entry matches if one of its tags is EQUAL TO in the target windows title

    Indeed, in this case, only the first entry will be used when i strike CTRL+SHIFT+ A

    Thx for you answers.

     
  • Paul

    Paul - 2019-09-23

    That is the standard behaviour if you stick with Title matching - the default KeePass arrangement.
    Is there a reason you are using tags for matching?

    cheers, Paul

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-23

    Thx for your answer.

    The problem is not using tag or title matching.

    Even if I create one entry with the title Title A - connection and another one with the title Connection, the two entries will appear when i strike CTRL+SHIFT+ A because the advanced option is :
    an entry matches if its title is CONTAINED in the target windows title

    The option CONTAINED is larger than EQUAL TO

    I mean : is it possible to add these four options ?

    an entry matches if its title is EQUAL TO ** the target windows title
    an entry matches if its URL is
    EQUAL TO the target windows title
    an entry matches if the hos component of its URL is
    EQUAL TO the target windows title
    an entry matches if one of its tags is
    EQUAL TO in the target windows title

    At the end whe would have eight possibilities :

    an entry matches if its title is CONTAINED in the target windows title
    an entry matches if its URL is
    CONTAINED in the target windows title
    an entry matches if the hos component of its URL is
    CONTAINED in the target windows title
    an entry matches if one of its tags is
    CONTAINED in in the target windows title
    an entry matches if its title is
    EQUAL TO ** the target windows title
    an entry matches if its URL is
    EQUAL TO the target windows title
    an entry matches if the hos component of its URL is
    EQUAL TO the target windows title
    an entry matches if one of its tags is
    EQUAL TO in the target windows title

     
  • Paul

    Paul - 2019-09-23

    KeePass is designed to be brower/app agnostic so it uses a wildcard match.
    To prevent that happening change the title to something that won't match.

    cheers, Paul

     
  • wellread1

    wellread1 - 2019-09-23

    When using Entry Titles for auto-type matching KeePass includes implicit wild cards at the beginning and end of Entry Title. If you wish to increase the specificity of auto-type matching set the Entry Title so that is does NOT match and define a custom auto-type sequence on the Auto-Type tab of the Edit Entry dialog instead of using the Entry's Ttile for matching. The target window title defined in a custom auto-type sequence does NOT automatically add wild cards.

    An EQUALS TO match is made if you include the entire Window Title in the target window of a custom auto-type sequence.

     

    Last edit: wellread1 2019-09-23
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    You are so right. Thx for your help

    Just a small note : I add a custom sequence for a specific window in auto type tab. I use edge. In this case, when I clikc on add button, in the target window menu, it is written "Title A and 2 others windows - Microsoft Edge". So this sequence only works if the website with title A is open with 2 other tabs in Edge. If i open this website in only one tab the Auto type doesn't work.

    Whereas with Firefox all is good, in the target windows menu it is written "Title A - Mozilla Firefox"
    I don't know if it is possible to correct that ?

    Thx

     
  • steelej

    steelej - 2019-09-25

    I think you should be able to solve this with a wild card match.

    If you edit the title in your custom sequence target window from
    "Title A and 2 others windows - Microsoft Edge"
    to
    "Title A*"
    It should match anything beginning with "Title A" in any browser

     
  • Paul

    Paul - 2019-09-25

    or "Title A* - Microsoft Edge"

    cheers, Paul

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    Thx for your answer.

    I know that but in this case it is not EQUAL TO. I mean if i have one Website with "Connexion - Title A" and another with "Connexion",

    with Edge i will have :
    Connexion - Title A*Microsoft Edge
    Connexion*Microsoft Edge in order to avoid the "2 others windows"
    In this case, the two sites will appear with AutoType because it CONTAINED the word Connexion

    Whereas with Firefox :
    Connexion - Title A - Mozilla Firefox" is REALLY different from Connexion - Mozilla Firefox even if both contained the word Connexion

     
  • Paul

    Paul - 2019-09-25

    The wildcards produce the multiple matches. It's up to you to come up with a definitive match, with or without wildcards.
    See the Target Window Filters section of the Help.

    cheers, Paul

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    Thx. I know that, I just notice that Edge and Firefox have not the same behavior. This is quite strange. I don't relly understand why it doesn't work the same wheres both browser use tabs.

     
  • Paul

    Paul - 2019-09-25

    KeePass matching will be the same.
    Post the titles of the same URL on Edge and FF and we'll advise.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2019-09-25

    You could use the following regular expression as target window filter:
    //Connexion (and \d+ other windows )?\u200E?- Microsoft Edge//

    If you want it to be browser-independent:
    //Connexion (and \d+ other windows )?\u200E?- .*//

    If you're wondering about the \u200E, see
    https://keepass.info/help/kb/faq.html#edgetitle

    Best regards,
    Dominik

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    Thx for all your helpl really nice of you.
    Dominik, must i put the // at the start and at the begininng ?

     
  • Dominik Reichl

    Dominik Reichl - 2019-09-25

    Regular expressions must be enclosed in // here, yes.
    https://keepass.info/help/base/autotype.html#autowindows

    Best regards,
    Dominik

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    Thx dominik it wordks but
    //Connexion (and \d+ other windows )?\u200E?- Microsoft Edge//
    and
    //Connexion - title A (and \d+ other windows )?\u200E?- Microsoft Edge//

    the auto-type for website "Connexion - title A" doesn't show "Connexion" GREAT !!!
    but the auto-type for website "Connexion" shows "Connexion - title A" SAD!!!

    but we are closier than ever :)

     
  • Paul

    Paul - 2019-09-25

    Then you must have another match set that matches just "Connexion".
    Check your KeePass entry under the Auto-Type tab for an additional window match.

    cheers, Paul

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    No I haven't any more match set that matches just "Connexion".
    It works one way but not the other way

    the auto-type for website "Connexion - title A" doesn't show "Connexion" GREAT !!!
    but the auto-type for website "Connexion" shows "Connexion - title A" (+ "Connexion" of course) SAD!!!

     
  • Horst

    Horst - 2019-09-25

    Why don't you use the WebAutoType plugin ?
    It allows you to match the real URL which I guess will be unique in your case.
    It works for all browers.

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-25

    Good idea. I'm going to see. Thx

     
  • Paul

    Paul - 2019-09-25

    //Connexion (?:- title).*// will exclude "- title" from the match.

    cheers, Paul

     
  • DSI - CCVG

    DSI - CCVG - 2019-09-26

    A big thx to Horst !!! WebAutoType plugin does the job correctly.
    A big thx to all of you for your help and precious advices !!!

     

Log in to post a comment.

MongoDB Logo MongoDB