Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29731
    Patrick C
    Participant

    My preferred settings are:
    ● Double click to select a string.
    ● Ctrl + double click to open a URI

    Issue:
    ● The ctrl + double click option is not available under [Tools] → [Customise] → [Active String]

    Suggestion:
    Add a Ctrl + double click option.

    Active String add Ctrl + double click

    #29767
    David
    Participant

    Yeah, It’s an good idea to add extras key for mouse click. This will give more possibilities.
    Is it also possible to consider Shift key?

    #29774
    Yutaka Emura
    Keymaster

    It might take some time, but I will think about this in the future. Meanwhile, you could write a macro to run on this event, and add a condition by the pressed key.

    #29777
    Patrick C
    Participant

    Ok I’ll try to write a Macro sometime this week and will post it here.
    Many thanks for considering!

    #29779
    Patrick C
    Participant

    Regarding the macro: I`m currently stuck with the condition on the pressed shift / alt / ctrl key.
    See: https://www.emeditor.com/forums/topic/modifier-key-ctrl-alt-shift-is-was-pressed/

    #29830
    Patrick C
    Participant

    Example code (formatted version):

    #title = "URL open or select"
    #icon = "C:\\Windows\\System32\\shell32.dll",135
    #tooltip = "URL open or select"
    #language = "V8"
    #async = "off"
    
    // Self test: https://www.emeditor.com/
    // Issue with control + single click:   https://www.emeditor.com/forums/topic/control-click-triggers-double-click/
    // PC, Version 1.0
    
    "use strict";
    
    bCtrlDown = shell.GetKeyState( 0x11 ) < 0;
    if( bCtrlDown ) {
        // OutputBar.writeln( '"'.concat(document.selection.Text, '"') );
        shell.Run(  "c:\\Program Files\\Vivaldi\\Application\\vivaldi.exe", 1, false, '"'.concat(document.selection.Text, '"')  );
        document.selection.Collapse();
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.