Author Topic: [v1.7.3.6] Issues with new categorization  (Read 1993 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4763
  • RTFM
[v1.7.3.6] Issues with new categorization
« on: March 14, 2019, 05:49:44 PM »
It's happened that some inline function methods aren't in the autocomplete list, but now it appears to be the opposite: A number of the newly categorized methods are listed in autocomplete, but the compiler says they don't exist.

E.G.
Code: [Select]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

public class VAInline
{
public void main()
{
string cmdName = VA.Command.Segment(1);
}
}

Won't compile, with the error:
Quote
15: 'VoiceAttack.VAProxyCommand' does not contain a definition for 'Segment' and no extension method 'Segment' accepting a first argument of type 'VoiceAttack.VAProxyCommand' could be found (are you missing a using directive or an assembly reference?)


The root class ("VA"/"vaProxy") compiles correctly.


The "Utility" class compiles correctly.


This happens with the following methods in the "Command" class:
Code: [Select]
VA.Command.InternalID();
VA.Command.Segment();
VA.Command.Action();
VA.Command.Before();
VA.Command.After();
VA.Command.Confidence();
VA.Command.MinConfidence();
VA.Command.IsSubcommand();
VA.Command.WhenISay();
VA.Command.IsListeningOverride();
VA.Command.IsComposite();
VA.Command.PrefixPart();
VA.Command.SuffixPart();
VA.Command.CompositeGroup();
VA.Command.Category();
VA.Command.PrefixCategory();
VA.Command.SuffixCategory();
VA.Command.LastUserExec();
VA.Command.ExecutionCount();
VA.Command.LastSpoken();
VA.Command.PreviousSpoken();

But not with these methods(I.E. they compile correctly):
Code: [Select]
VA.Command.SetSessionEnabled("", false);
VA.Command.GetSessionEnabled("");
VA.Command.SetSessionEnabledByCategory("", false);
VA.Command.Execute("");
VA.Command.Exists("");
VA.Command.Active("");
VA.Command.SpokenHistory(0);



The "Profile" class does work completely, though I did note "VA.Profile.HistoryAuthorID(int iItem)" is not documented(it's present in the autocomplete list but not VoiceAttackHelp.pdf).


The "Queue" class does not work at all, every method is not found:
Code: [Select]
VA.Queue.Count();
VA.Queue.Status("");
VA.Queue.CommandCount("");
VA.Queue.ActiveCommandName("");

The documentation for it is also erroneous; "Count()" is correct, but all other methods still refer to their old non-categorized name(even though VA.Queue.Status() includes an example using the new name/class).


The "State" class works completely, including the "State.Joystick" class.

However, the documentation for "VA.State" states
Quote
Below are the attributes that belong to the State object of vaProxy. This set of functions
deals with various states of devices, your computer, and VoiceAttack itself. Just like the,
‘Utility’ object earlier in this section, this is a bunch of functions that VoiceAttack uses
internally, but is exposed to hopefully make things a bit easier for you for certain stuff.

But there are no listed methods below it, and the documentation immediately moves on the "vaProxy Events" section.

Oddly enough, while there is a stub section on "State.Joystick", it's in the "vaProxy.Utility Attributes" section, instead of the "vaProxy.State" section(and it does appear to be under "VA.State.Joystick" according to autocomplete and the compiler, not "VA.Utility.State.Joystick").


EDIT: Fixed in v1.7.3.8, documentation updated with v1.7.3.9
« Last Edit: March 18, 2019, 10:09:55 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: [v1.7.3.6] Issues with new categorization
« Reply #1 on: March 14, 2019, 10:02:36 PM »
/facepalm

All of my state help documentation was still in notepad and all the missing stuff was left commented out o_O
I'm not drunk.
I promise.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4763
  • RTFM
Re: [v1.7.3.6] Issues with new categorization
« Reply #2 on: March 16, 2019, 10:55:13 PM »
All methods added in v1.7.3.6 compile in v1.7.3.8

Documentation for "vaProxy.Queue.CommandCount(string QueueName)" on VoiceAttackHelp.pdf page 187 refers to "Count(string Name)" instead, which does not exist.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2827
Re: [v1.7.3.6] Issues with new categorization
« Reply #3 on: March 18, 2019, 09:07:51 PM »
Ah... gotcha.  All touched up.

Thank you, sir.