In electron, can the main process send a synchronous message to a window?

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
electron, javascript
Área
desktop

Línea de trabajo

Start by reading the Electron main-process and window communication APIs, focusing on how a script in the main process could receive a result from the outline window. Confirm whether synchronous request-and-response messaging is supported and document the supported approach or its limitation. Done means the issue has a clear, tested recommendation for implementing op.go.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Big picture, I'm running user scripts in the main process.

I want the scripts to be able to customize the app, which is displaying an outline in the front tab.

So I need to be able to send a message like:

op.go (direction, count)

As part of a script...

 if (!op.go (down, 1)) {
    op.go (left, 1);
    op.go (down, 1);
    }

In order for the first op.go to work, it must be told whether or not the attempt to go down worked. If not, it has reached the end of the list, and must pop out a level and continue.

Obviously op.go must be synchronous.

The script is running in the main process.

The outline is in the window.

Thus I need to be able to send a synchronous message to the window and get back a result.

Any help appreciated.

Lenguaje dominante
HTML
Estrellas
134
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scripting/Scripting-News

Todos los issues de scripting/Scripting-News

Issues similares

Más issues de Desktop Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.