This Forum is now reserved to registred users!
Is there a way to make an extra notification for EXT-Browser?
-
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?
-
"https://www.google.nl/search?q=" + params[1]
but make a black screen and a segfault … don’t know why