In electron, can the main process send a synchronous message to a window?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- electron, javascript
- Domain
- desktop
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- HTML
- Stars
- 134
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from scripting/Scripting-News
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
scripting/Scripting-News#353 · 6 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
scripting/Scripting-News#332 · 25 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
scripting/Scripting-News#362 ·
-
Matt is moved aside Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
scripting/Scripting-News#361 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
scripting/Scripting-News#360 · 1 comment · 1 reaction ·
All issues in scripting/Scripting-News
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
extension extension: raycast-system-monitor feature request platform: macOS
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
raycast/extensions#31335 · 2 comments ·