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

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
electron, javascript
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
HTML
スター
134
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scripting/Scripting-News のほかの issue

scripting/Scripting-News の issue をすべて見る

似ている issue

Desktop Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。