Jump to content


Photo
- - - - -

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


  • Please log in to reply
1 reply to this topic

#1 2MuchTech

2MuchTech

    Cocooner

  • Registered
  • PipPip
  • 76 posts

Posted 12 January 2016 - 01:07 AM

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.



#2 2MuchTech

2MuchTech

    Cocooner

  • Registered
  • PipPip
  • 76 posts

Posted 14 January 2016 - 07:05 PM

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();






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users