Author Topic: VoiceAttack action to clear event log  (Read 3267 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
VoiceAttack action to clear event log
« on: March 28, 2018, 12:47:27 PM »
Not sure if this has been requested previously, but it would be nice to have a VoiceAttack action for clearing the event log.

Thanks!


EDIT by Pfeil: "ClearLog()" proxy function implemented
« Last Edit: April 18, 2020, 11:48:10 AM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: VoiceAttack action to clear event log
« Reply #1 on: March 28, 2018, 01:05:12 PM »
Maybe I can make it part of the proxy.  You would just need an inline function to invoke it... would that work?

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: VoiceAttack action to clear event log
« Reply #2 on: March 28, 2018, 04:27:57 PM »
you betcha ;)

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: VoiceAttack action to clear event log
« Reply #3 on: April 07, 2018, 12:38:09 AM »
I added a ClearLog() function to vaProxy.  The version in the, 'unofficial' bin has this if you need it now:
http://www.voiceattack.com/unofficial  Hope that helps some!


Edited by Pfeil: There was a special character after the link which made it invalid and "ate" the text after it
« Last Edit: April 07, 2018, 03:07:01 AM by Pfeil »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: VoiceAttack action to clear event log
« Reply #4 on: April 07, 2018, 03:42:16 AM »
When calling the function using this inline function:
Code: [Select]
public class VAInline
{
public void main()
{
VA.ClearLog();
}
}

It won't compile, with this message in the log:
Quote
Compile errors: 1
7: 'VoiceAttack.VoiceAttackInvokeProxyClass' does not contain a definition for 'ClearLog' and no extension method 'ClearLog' accepting a first argument of type 'VoiceAttack.VoiceAttackInvokeProxyClass' could be found (are you missing a using directive or an a

Autocomplete suggested the syntax, I just added the semicolon.


EDIT: Didn't have time to fix it after posting, but "conatin" -> "contain"

EDIT#2: Fixed in v1.7.0.1 (Version was not incremented for fix).
« Last Edit: April 07, 2018, 12:34:37 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: VoiceAttack action to clear event log
« Reply #5 on: April 07, 2018, 10:06:21 AM »
Yikes!  Worked in debug, did not work in released version.  I figured it would be as simple as MainWindowHandle, but since this is a method it required a little more massaging.  Touched up and put back in the bin. 

Thanks for the heads-up!

(Also removed the VA.MainWindowHandle from the root autocomplete... it now appears when it should).