In electron, can the main process send a synchronous message to a window?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- electron, javascript
- Ambito
- desktop
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- HTML
- Stelle
- 134
- Fork
- 10
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scripting/Scripting-News
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
scripting/Scripting-News#353 · 6 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
scripting/Scripting-News#332 · 25 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
scripting/Scripting-News#362 ·
-
Matt is moved aside Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
scripting/Scripting-News#361 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
scripting/Scripting-News#360 · 1 commento · 1 reazione ·
Tutte le issue di scripting/Scripting-News
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
bug 🐞
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
extension extension: raycast-system-monitor feature request platform: macOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
raycast/extensions#31335 · 2 commenti ·