Advertisement
SemlerPDX

AVCS QCC List All Macro Actions in Command

Aug 14th, 2020
1,367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.35 KB | None | 0 0
  1. ' Quick Command Creator Inline-Function for VoiceAttack -  List All Actions for Editing
  2. '  by SemlerPDX Jun2020
  3. '  VETERANS-GAMING.COM
  4.  
  5.  
  6. Imports Microsoft.VisualBasic
  7. Imports System
  8. Imports System.Text
  9. Imports System.Collections
  10. Imports System.Collections.Generic
  11. Imports System.Data
  12. Imports System.Drawing
  13. Imports System.Diagnostics
  14. Imports System.Windows.Forms
  15. Imports System.Linq
  16. Imports System.Xml.Linq
  17. Imports System.Threading.Tasks
  18.  
  19. Public Class VAInline
  20.     dim cmdIndex as Int32 = 1
  21.     dim cmdStep as string = ""
  22.     dim cmdSteps as string = ""
  23.    
  24.     Public Sub Main()
  25.        
  26.         if ((VA.GetText("~avcs_qcc_phrase")) IsNot nothing)
  27.             dim profileName as string = VA.GetText("~avcs_qcc_phrase")
  28.             VA.WriteToLog("AVCS QCC - When I say:  " + (VA.GetText("~avcs_qcc_phrase")).ToString(),"orange")
  29.         end if
  30.         VA.WriteToLog("AVCS QCC - Execute the following VoiceAttack Action Steps:","orange")
  31.        
  32.         while ((VA.GetText("~avcs_qcc_step_" + cmdIndex.ToString())) IsNot nothing)
  33.             cmdStep = VA.GetText("~avcs_qcc_step_" + cmdIndex.ToString())
  34.             cmdSteps = cmdSteps + cmdIndex.ToString() + ". " + cmdStep + ";"
  35.             VA.WriteToLog(cmdIndex.ToString() + ". " + cmdStep.ToString(),"grey")
  36.             cmdIndex += 1
  37.         end while
  38.        
  39.         cmdIndex -= 1
  40.         VA.SetText("~avcs_qcc_actions_list", cmdSteps)
  41.         VA.SetInt("~avcs_qcc_step_count", cmdIndex.ToString())
  42.    
  43.     End Sub
  44.  
  45. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement