Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Is there a way to make an extra notification for EXT-Browser?

    Recipes
    2
    2
    35
    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.
    • A
      Angel last edited by

      Hey guys,
      i am trying to think how would a search browser recipe would work
      is there a possibility to write a search google recipe through ext-browser?
      i can see that ext-browser accepts only OPEN and CLOSE notifications but if we could also add a SEARCH notification to a new search section of the program.

      In my head it is something like this i guess …

      var recipe = {
        transcriptionHooks: {
          "BROWSERSEARCH": {
            pattern: "Search google for (.*)",
            command: "BROWSER_SEARCH"
          }
        },
      
        commands: {
          "BROWSER_SEARCH": {
            functionExec: {
              exec: (params) => {
                this.sendNotification("EXT_BROWSER-OPEN", params[1])
              },
              payload: (params) => {
                return {
                  urls: ["https://www.google.nl"]
                }
              },
              exec: (params) => {
                this.sendNotification("EXT_BROWSER-SEARCH", params[1])
              }
            },
            soundExec: {
              chime: "open",
            },
            displayResponse: true
          }
        }
      }
      exports.recipe = recipe
      

      could you help me make this work somehow?

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        "https://www.google.nl/search?q=" + params[1] but make a black screen and a segfault … don’t know why

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | @bugsounet ©2022