You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when running electron I trace to the screen but that's kind of annoying as it tends to mess up the view.
It seems you can quite easily create a secondary window, I was wondering if ipc could be setup so that messages could be transfered between apps, seems there is an extern here but not sure on setup? https://github.com/ciscoheat/haxe-js-kit/blob/master/js/atomshell/browserandwebpage/Ipc.hx
The concept is here: electron/electron#991
I presume if I understood setting up the externs I could create a Tracer js something like...
import js.Browser.console;
import js.Browser.document;
import js.Browser.window;
import js.html.*;
import js.node.Ipc;
class Tracer {
static var div: DivElement;
static function main() {
window.onload = function(){
div = cast document.getElementById( 'traceInfo' );
Ipc.on('my-msg', function(event, arg) {
screenLog( arg );
});
}
}
public static function screenLog( d: Dynamic ){
div.textContent += d;
}
}
Might be nice to have a optional trace window out of the box, and optional wrapper for running HL/Neko/Python code? What do you think Franco is it beyond the scope of this github?
The text was updated successfully, but these errors were encountered:
Currently when running electron I trace to the screen but that's kind of annoying as it tends to mess up the view.
It seems you can quite easily create a secondary window, I was wondering if ipc could be setup so that messages could be transfered between apps, seems there is an extern here but not sure on setup?
https://github.com/ciscoheat/haxe-js-kit/blob/master/js/atomshell/browserandwebpage/Ipc.hx
The concept is here:
electron/electron#991
I presume if I understood setting up the externs I could create a Tracer js something like...
so my main class might change to something like.
Then in your app code
I managed to get Neko to run from my electron app perhaps this is also something to explore, perhaps if HL worked more easily on mac it might be interesting to try or python!
https://www.fyears.org/2015/06/electron-as-gui-of-python-apps.html
Might be nice to have a optional trace window out of the box, and optional wrapper for running HL/Neko/Python code? What do you think Franco is it beyond the scope of this github?
The text was updated successfully, but these errors were encountered: