IRC Log Viewer » #firebreath » 2015-10-15

IRC Nick Time (GMT-7) Message
gopi 08:10 hi everyone i have built dll from echotestplugin example, what i need to do load a plugin in chrome ,what are the steps i need to follow
please guide me
i am experimenting FB2.0 for loading plugin in chromw
chrome
chrome
Enkindler 08:10 You need to install the extension that comes with the solution (NativeMessageExtension)
You need to install the extension that comes with the solution (NativeMessageExtension)
You registered the DLL yes?
You registered the DLL yes?
Enkindler 10:10 I've been reading what you sent me to see if I can finally manage to interact with the plugin.
I made this http://pastebin.com/rY4CvDmV
I made this http://pastebin.com/rY4CvDmV
following somewhat what i read...
but it bassically returns Could not execute command, and The specified member does not exist:
but no real message
taxilian 10:10 is there a reason you're doing this all inside a single function, rather than saving pluginObj for later use?
also, pluginObj isn't a function, it's an object
also, pluginObj isn't a function, it's an object
you seem to still be missing the whole "pluginObj should be interacted with almost just like if it were the object tag" thing
e.g. not pluginObj("echo"), but pluginObj.echo(...)
you're trying to make this *far* more complicated than it is
once you have pluginObj, just use it; keep in mind that just like NPAPI all function calls or properties return a promise
Enkindler_ 10:10 Any ideas taxilian?
Any ideas taxilian?
taxilian 10:10 yeah, I just posted 6 lines
yeah, I just posted 6 lines
but I guess your client disconnected?
Enkindler_ 10:10 Kinda...
My bad... and I don't see them yet on the logs
taxilian 10:10 yeah, logs only update on a schedule
yeah, logs only update on a schedule
gimme a minute
Enkindler_ 10:10 Which client do you use for IRC?
Alright, Thanks!
taxilian 10:10 I use znc to keep me connected and log, and I connect to it using adium on mac
Enkindler_ 10:10 Mkai...
taxilian 10:10 http://logs.firebreath.org/irc_channels/1/log_files/1867
logs updates
logs updates
updated
Enkindler_ 10:10 Thanks!
taxilian 10:10 you seem to keep trying to make this really difficult
but once you get pluginObj, things should Just Work in the same way they do w/ NPAPI, etc
but once you get pluginObj, things should Just Work in the same way they do w/ NPAPI, etc
there are a couple of gotchas, but they won't affect you yet
there are a couple of gotchas, but they won't affect you yet
mainly they come when you try to save sub objects
Enkindler_ 10:10 I thought that, but when I try to print pluginObj it prints function window._fwcb_57582957.6.wyrmling()
which is why I was a bit confused...
and yes, i Thought assigning pluginObj to a global var would work but I wanted to first try and see if it actually was that way...
and yes, i Thought assigning pluginObj to a global var would work but I wanted to first try and see if it actually was that way...
taxilian 10:10 yeah, the object is made very differently, nothing I can do about that I'm afraid
yeah, the object is made very differently, nothing I can do about that I'm afraid
=]
=]
but echo is a function; it should return whatever you pass in to it (well, return a promise that resolves to it, anyway)
but echo is a function; it should return whatever you pass in to it (well, return a promise that resolves to it, anyway)
Enkindler_ 10:10 That was actually what I was stuck with...
Alright... Well, now I should be able to make something work... Kinda...
taxilian 10:10 =]
Enkindler_ 12:10 after i do plugin = pluginObj
i try plgin.echo("echo").then(function(data) {console.log(data)})
i try plgin.echo("echo").then(function(data) {console.log(data)})
should work yes?
should work yes?
taxilian 12:10 well, excepting the typo yes =]
Enkindler_ 12:10 alright
im having an issue then
taxilian 13:10 whats it doing?
whats it doing?
Enkindler_ 13:10 nvm
Now it's working!
Now it's working!
taxilian 13:10 awesome!
awesome!
Enkindler_ 13:10 Yes... Finally got it to work!
Yes... Finally got it to work!
Yes... Finally got it to work!
Thanks for the help!
Thanks for the help!