Haiku How can I create a log entry for OP II "events" using Haiku Helper?

2MuchTech

Member
I would like to write an entry to the OP II log file (the one you see from the Events window in Haiku or the Event Log in PC Access) from within a Haiku Helper script function.  I think the scripting language supports this, but I'm having trouble getting an entry into the OP II Event Log.  I'd appreciate if someone would point me in the correct direction (a one line sample of code would be perfect).  Thx.
 
Well, it's not too difficult... if you remember to Sync HaikuHelper with your controller after you add the Message(s) in PC Access and upload them to the OP II.  Doh!
 
For anyone interested, here's the Javascript that does the trick in HH:
 
  controller.messageWithName('TestBtn').log();
 
Back
Top