Author Topic: Elite - Trader Help please !  (Read 5616 times)

Lokkermallet

  • Guest
Elite - Trader Help please !
« 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

TheThingIs

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 278
    • HCS Voicepacks
Re: Elite - Trader Help please !
« Reply #1 on: December 15, 2017, 08:36:11 AM »
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.
The Singularity profile - One profile to rule them all and at HCS we bound them ;)

You see, TheThingIs, eventually you'll be allright.

Lokkermallet

  • Guest
Re: Elite - Trader Help please !
« Reply #2 on: December 15, 2017, 09:05:08 AM »
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 ?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Elite - Trader Help please !
« Reply #3 on: December 15, 2017, 03:38:28 PM »
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
Code: [Select]
Set Text [~inputFile] to [C:\test.txt]
Say, '{TXT:~inputFile}'

Read text from notepad
Code: [Select]
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, which has functions to retrieve specific sections of text within a file.