Community
    • Login

    possible to create a openfile dialog under jn-npp-plugin ?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 3 Posters 54 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      candide33
      last edited by

      hi
      new with Notepad++, i am converting an old VBS script under PSPad in JScript under Notepad++ but i have issue with an openfile dialog, i didn’t find a way to do that with jn-npp-plugin.

      all ideas or examples will be welcome.

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @candide33
        last edited by

        @candide33

        Maybe not of direct interest to you (maybe others would be interested), but @Ekopalypse has Pythonscript code for an openfile dialog in his “little dialog wrapper”, which you can read more about here: https://community.notepad-plus-plus.org/topic/24389/little-dialog-wrapper-for-pythonscript

        1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @candide33
          last edited by

          @candide33 said in possible to create a openfile dialog under jn-npp-plugin ?:

          new with Notepad++, i am converting an old VBS script under PSPad in JScript under Notepad++ but i have issue with an openfile dialog, i didn’t find a way to do that with jn-npp-plugin.

          My first thought was that you were just asking a generic “how do I use openfile with JScript”, and that you were conflating development for jn-npp-plugin to make automating Notepad++ easier with generic JavaScript davelopment – which a lot of people do on the other scriping plugins.

          But when I read the blurb about jn-npp-plugin in the Plugins Admin, it looks like it really does include a lot of the graphical elements associated with doing windows-related GUI tasks using the Notepad++ plugin. With that re-read, it means it blurs the line between scripting plugin (ie, for automating Notepad++) and IDE+Interpreter, which would normally be kept more separate. So it might be that i’ve previously misunderstood the purpose of jn-npp-plugin.

          Since jn-npp-plugin uses JavaScript, my guess is that searching for how to do openfile dialogs in JavaScript / JScript (does even Microsoft use their old name for the alternate implementation of ECMAScript standard anymore?). But maybe you want to start by looking up generic helpsites for how to get openfile dialog to work as you want in JScript… if you’re able to do that, then maybe it will help with getting it to work in jn-npp-plugin environment as well.

          For jn-npp-plugin specifics, if you wait, someone who uses that plugin might wander by and be able to give more advice. Or the plugin has a wiki, so that documentation might help you with your issue.

          But since I have no experience with that plugin, it’s probably best to not take my word as law: just as the ideas of someone who has used other of the N++ scripting plugins, offering a semi-outsider’s perspective on your question.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @PeterJones
            last edited by

            @PeterJones said in possible to create a openfile dialog under jn-npp-plugin ?:

            Or the plugin has a wiki , so that documentation might help you with your issue.

            For example, this page in its wiki describes how to call win32 api functions from the plugin. Using that, and the topic that @Alan-Kilborn linked, where @Ekopalypse showed how to wrap that same win32 api dialog using PythonScript plugin, combing the two ideas might allow you to do the same wrapping in jn-npp-plugin.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors