SemlerPDX

Get Last Spoken Commands for Get-Choice box

Aug 14th, 2020 (edited)
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.94 KB | None | 0 0
  1. ' Quick Command Creator Inline-Function for VoiceAttack -  Get list of last 20 Spoken Commands for Get Choice Box
  2. '  by SemlerPDX Jun2020
  3. '  VETERANS-GAMING.COM
  4.  
  5.  
  6. Imports Microsoft.VisualBasic
  7. Imports System
  8. Imports System.Collections
  9. Imports System.Collections.Generic
  10. Imports System.Data
  11. Imports System.Drawing
  12. Imports System.Diagnostics
  13. Imports System.Windows.Forms
  14. Imports System.Linq
  15. Imports System.Xml.Linq
  16. Imports System.Threading.Tasks
  17.  
  18.  
  19. Public Class VAInline
  20.     dim spokenCommands as string = ""
  21.    
  22.     Public Sub Main()
  23.        
  24.         for cmdIndex as integer = 1 to 20
  25.             if ((vaProxy.Utility.ParseTokens("{SPOKENCMD:" & cmdIndex.ToString() & "}")) IsNot nothing)
  26.                 spokenCommands = spokenCommands + vaProxy.Utility.ParseTokens("{SPOKENCMD:" & cmdIndex.ToString() & "}") + ";"
  27.             end if
  28.         next
  29.        
  30.         if (not(spokenCommands = ""))
  31.             VA.SetText("~avcs_qcc_options_choices", spokenCommands.ToString())
  32.         end if
  33.        
  34.     End Sub
  35.  
  36. End Class
Add Comment
Please, Sign In to add comment