Struggled getting my invoke/handle block working for HOURS until I found this video. Thank you!
@DamonMedekMusic2 жыл бұрын
I'm using Electron and I've basically sectioned by preload script into 4 pieces. Renderer to Main, Renderer to Main to Renderer, Main to Renderer, and Main to Renderer to Main. This video did a great job explaining the first two sections. It took my awhile to digest all of this but it made a lot of sense eventually, thank you so much.
@tylerlaceby2 жыл бұрын
Of course. Glad you liked it.
@RadTwin Жыл бұрын
Best explanation on KZbin right here
@Einfach_Ben2 жыл бұрын
Thank you so much, I ran through so many slightly older videos/docs and comments which used electron remote all through render process which apparently doesn't work anymore, but I did not realize that this was the solution I needed. The pain is over...
@datasagedev2 жыл бұрын
I second everything you just said Ben, its crazy how little content and support there is for Electron with both Docs and other sources.
@wolf71156 ай бұрын
Thank you so much! I was having a ton of issues getting electron to work the way I wanted, and your explanation of invoke/handle solved everything for me.
@RockieYang Жыл бұрын
Thanks for great explanation.
@Barrosy Жыл бұрын
This is such an explanatory video. Thank you so much!
@gbingol Жыл бұрын
To the point and very nice tutorial! Thanks.
@arsen32232 жыл бұрын
this is really helpful thank you
@mohammadagha88572 жыл бұрын
Thanks a lot for this great video.
@vamparicW3 жыл бұрын
great video, thank you!
@tylerlaceby3 жыл бұрын
Glad you enjoyed xD
@ubidefeo2 жыл бұрын
This was sooooo helpful! Thanks, Tyler. By the way, the GH link in the description points to a wrong url :)
@tylerlaceby2 жыл бұрын
Glad you found it useful. Also thanks I’ll get that fixed asap
@fantom_0560Ай бұрын
think I might have just found an electron goldmine
@Graducation Жыл бұрын
hey man everything is good buti am not able to set my app icon(it shows default electron) after running make command
@tylerlaceby Жыл бұрын
Sorry to hear that man. I sadly don’t know for sure but feel free to reach out on discord
@ukaszX-qt8eu2 жыл бұрын
Thanks. I have a propably simple problem to solve. I need IPC to connect python/electron. I have a python script that requires first no1 parametr, and secondly no2 parametr from user to start working. How to do it, can you give some examples, that we have simple python script which require some 2 variables from user to start, and it will be all activated from UI.
@tylerlaceby2 жыл бұрын
What you want to do is communicate via child processes to python. You can send and receive messages using child processes and pipes.
@Verzach32 жыл бұрын
Hey bro, nice video, can you share the source to use it as an example?.
@tylerlaceby2 жыл бұрын
Sadly I didn’t keep any of the source files. But if you need any help or need please feel Fred to ask here or in my discord server. Cheers
@p.p526 Жыл бұрын
Bro, Is it possible to receive data inside main process ipcMain.handle function? I'm seding the userId from renderer and tying to use on inside the handler function but it's not working, any other alternative for this?
@tylerlaceby Жыл бұрын
You should be able to use handle and invoke events or the on and send events.
@tylerlaceby Жыл бұрын
If you are still having issues feel free to reach out on my discord or watch this video to see the differences. Best of luck. kzbin.info/www/bejne/ipbanWWPmaeXbNksi=j_Ms5IixZ22J9Yp0
@p.p526 Жыл бұрын
@@tylerlaceby Thanks bro for the support. Really appreciated.
@kristianpurgar50682 жыл бұрын
The repository is not active anymore, I get 404?
@tylerlaceby2 жыл бұрын
Yea I changed my username on GitHub from tylerbadger23 to tylerlaceby I have not updated the descriptions on older videos. Sorry 😁
@unloyal63962 жыл бұрын
Hi, thanks for the video! I am using vue.js and every time i try to run the window.api.greet function from my vue class in the script i get the error: TypeError: Cannot read property 'greet' of undefined Any idea how i can fix this? Thanks in advance.
@tylerlaceby2 жыл бұрын
I would first make sure the exportInMainWorld(“api”, {}); function is being called in your preload script. Then console log the window object. If that’s not working then feel feee to message me in the discord server and make sure that you are loading the preload script inside the browser window declaration
@unloyal63962 жыл бұрын
@@tylerlaceby Thanks! I forgot to actually call the function in the browser window, also i had to add : module.exports = { configureWebpack: { target: 'web' } } to the vue.config.js file
@jasminescorp Жыл бұрын
This is so good, but unfortunately the github repo does not work
@tylerlaceby Жыл бұрын
Oh no. I still need to fix the repo link with my older videos. Sorry about that. The username is tlaveby for my GitHub xD
@jasminescorp Жыл бұрын
@@tylerlaceby thanks I tried both. Tylerlabeby and 23. You have so many good examples, would be awesome to take at the code.
@daviclor66702 жыл бұрын
This is a good tutorial, but it would be much more helpful if there were a working link to the source code.
@tylerlaceby2 жыл бұрын
Yea sorry I have not started posting direct source code yet. I should probably do that.
@narottambasnet15653 жыл бұрын
I have a child and a parent electron but somehow I am not able to communicate with the child from main process
@tylerlaceby3 жыл бұрын
When you say child electron do you mean a child process ? If so then I would be happy to help if you go in discord. But I would first suggest checking to make sure the communication is setup. Lastly remember that the main and child processes communicate over the electron iPad events.
@coryulrich6489 Жыл бұрын
I'm trying to learn how to use node modules in electron because that was what made it sound so awesome for desktop applications, and I almost can't believe people thing doing this is not only good, but the best option in the industry at the moment. It's honestly so complicated I think I'd rather just start learning rust. Learning the intricacies of electron may as well be another language in and of itself.
@tylerlaceby Жыл бұрын
I mean if you want that’s fine but then you have to learn Rust and a while library. You do you man 👨
@coryulrich6489 Жыл бұрын
@@tylerlaceby it's just a lot more difficult than anyone who talks about electron lets on. I finally gave up using a node module because the documentation and forum posts for doing so safely is a tangled nightmare. I was planning to play in rust anyways, and if the rest of the electron experience is like this I'll see if flutter is a better option for me.