VoiceAttack
Profiles, Commands and Plugins => Profile Uploads => Topic started by: Lokkermallet on December 15, 2017, 08:21:38 AM
-
Im playing with a HMD and I really would find useful a command that will open the market , find the commodity I want to buy and buy it all with a voice command and in reverse to sell.
I have zero VA or programming knowledge, can any kind soul help ??
Thanks in Advance
Justin :o
-
It can be done but would be a very flaky command. Not all stations list the menus in the same place and not all the commodities are in the same place. We can tell if a station has a certain commodity but if another one is missing then it won't be 10 lines down on the list, it may be 9th or 8th. I think it could be done with the information we have from Elite but quite a complicated command to achieve good results with.
-
Is it possible to get VA to read out a possible trade route you may have written down in notepad , so that I dont have to take the HMD off all the time to see whats next on my list of commods to buy ?
-
It depends on how advanced you need your text reader to be.
If all you need is VoiceAttack to read out the entirety of a text file you've saved beforehand, or text in a notepad window, you can use the following built-in features:
Read text from file
Set Text [~inputFile] to [C:\test.txt]
Say, '{TXT:~inputFile}'
Read text from notepad
Set Text [~prevWindow] to '{ACTIVEWINDOWTITLE}'
Press Left Ctrl+A keys and hold for 0,01 seconds and release
Press Left Ctrl+C keys and hold for 0,01 seconds and release
Display window '{TXT:~prevWindow}' as [Show]
Say, '{CLIP}'
The command target("Send this command to") should be set to "*Notepad".
This will switch focus to notepad for a split second, but unless your VR application uses exclusive fullscreen, or cuts the audio when losing focus, you shouldn't even notice it in the HMD.
Both examples are attached as a .vap so you can import them into VoiceAttack.
Otherwise you'll probably want to look into VAExtensions (https://voiceattack.com/SMF/index.php?topic=15.0), which has functions to retrieve specific sections of text within a file.