Voice Attack: Pasting a multi-line entry into coms?

Playing around this is the most efficient I can get it?

5VO10sA.png


I assume there's not a way to get the multiple lines into the communication input more efficiently instead of entering in each line one after another?

Note my 0.2 second delays else the keyboard input is too quick for ED and get ignored...







EDIT

So has anyone got a way of easily sending a coms message of:-
This is line 1
This is line 2
This is line 3​
 
Last edited:
I wrote such a macro that works well. I'll try to remember to post it when I get home from work. I believe that my macro enters the entire message in one command rather than one command per line and I don't think it uses the clipboard.

Suggestion: Uncheck the option "Allow other commands to be executed while this one is running." If any other macro runs, it could easily mess up this one.
 
I wrote such a macro that works well. I'll try to remember to post it when I get home from work. I believe that my macro enters the entire message in one command rather than one command per line and I don't think it uses the clipboard.

Suggestion: Uncheck the option "Allow other commands to be executed while this one is running." If any other macro runs, it could easily mess up this one.

Being able to enter multiple lines would make sense. I was sort of hoping there was a control sequence for the ED chat to throw a line without fully submitting the line if that makes sence...

Any help appreciated...
 
I'm unable to attach pictures local or from imgur. Stupid forum implementation.
So, here's the concept:

Send Message - this sends the message using the designated mode (last, target, recent)

Press 2 key and hold for 0.1 seconds and release
Begin Small Integer Compare: [chatDestination] Equals 0
Quick Input, '/l'
End Condition
Begin Small Integer Compare: [chatDestination] Equals 1
Quick Input, '/t'
End Condition
Begin Small Integer Compare: [chatDestination] Equals 2
Quick Input, '/r'
End Condition
Quick Input,'{TXT:chatText}'
Quick Input,' '
Press Enter key and hold for 0.1 seconds and release
Press Escape key and hold for 0.1 seconds and release
Press Escape key and hold for 0.1 seconds and release

Set Recent - This sets the mode to recent for all future messages. Write similar ones for last and target.

Say, 'Message set to recent'
Set Small Integer (condition)[chatDestination] value to 2

Wing at Nav - This is an example of sending a canned message using.

Set Text[chatText] to 'Do you want to wing for some bounty hunting at the Nav beacon?'
Execute command, '(Send Message)' (and wait until it completes)

To use this, issue Set Recent or Set Last or Set Target. This issue message 1 macro, message 2 macro, ... and they will all go to the designated destination.
 
Last edited:
Sorry, you'll need to help me out a little bit there...

What are the lines on the chatDestination achieving? ie: Where is that value coming from even?

And the "TXT:chatText" is coming from where? What is it? And can it be multi-line and if so how?

aV5s5FB.png
 
I use nircmdr to copy&paste prewritten textfiles with voiceattack.
I couldn't find a good manual or make a screenshot atm, but at this link right at the bottom is a explanation.

https://groups.google.com/forum/#!topic/voiceattack/fzc5lPB_InI

Hope this helps...

And that can do multiple lines at a time?

eg: To send:-
"This is line 1"
"This is line 2"
"This is line 3"

That can all be pasted in as one lump of text and CTRL-V'd in? It doesn't have to be done as three individual things?



The odd thing is, VA can already put stuff into the clipboard so would be doing just what nirCmdr is doing surely? It's just the multi-line thing that is the issue so you have to paste in each line individually :(. eg:-
5VO10sA.png
 
Last edited:
I use nircmdr to copy&paste prewritten textfiles with voiceattack.
I couldn't find a good manual or make a screenshot atm, but at this link right at the bottom is a explanation.

https://groups.google.com/forum/#!topic/voiceattack/fzc5lPB_InI

Hope this helps...

+1 this is exactly how I do it - I'd forgotten about nircmdr and remembered I was using AutoHotKey only. Makes the VA script really simple, only a few lines. My main gaming rig is offline at the moment so I can't recall the details but it was far simpler for me to just open a text file with the messages and use nircmdr to get them on the clipboard. That way if I want to edit the messages I just open Notepad rather than having to edit things in VA. Easiest way IMHO.

~X
 
Ok I seem to have misunderstood the OP. My text messages are all rather short, 2 lines max in ED.
After looking at your script and fiddling a bit myself with nircmdr, it seems to me pasting on ED side is the problem. I can't get ED to paste more than 3 lines, although when i paste it to a textfile again it is all there.

Seems your solution is the most efficient yet.
 
OK, explain to me how you lot are getting multi-lines into the chat?

If I cut and paste:-
This is line 1
This is line 2
This is line 3

And then open the chat (C), and CTRL-V. All that appears in there is:-
This is line 1

It stops at the carriage return!?
 
Last edited:
This idea is best implemented as multiple macros - (a) message-specific macros, (b) general macro for sending a message, (c) macros to indicate where to send the message. Using files and the clipboard is more complicated and doesn't necessarily work better. I find this approach simpler and fast. The message-specific macros have the actual text and pass the text (without carriage returns) to the Send Message macro using the variable *chatText*. The other macros indicate where to send the message and retain that destination (local, target, recent) in the *chatDestination* variable until you change it. I recommend giving up trying to send carriage returns in a single message or playing with the clipboard.
 
Last edited:
Yes, carriage return sends the message.

I can't upload any pictures. I always get an invalid file error. But I will try to explain:

I have a txt file with for example: I am not here to destroy your ship but a pirate needs to make a living. Let's just be professional

This is shown in ED:
I am not here to destroy your ship but a
pirate needs to make a living. Let's just be
professional

100 characters seems to be the limit I am able to ctrl+v with my method. When I try longer txts the beginning is cut of.
 
This idea is best implemented as multiple macros - (a) message-specific macros, (b) general macro for sending a message, (c) macros to indicate where to send the message. Using files and the clipboard is more complicated and doesn't necessarily work better. I find this approach simpler and fast. The message-specific macros have the actual text and pass the text (without carriage returns) to the Send Message macro using the variable *chatText*. The other macros indicate where to send the message and retain that destination (local, target, recent) in the *chatDestination* variable until you change it. I recommend giving up trying to send carriage returns in a single message or playing with the clipboard.

May very well be that your macros are better, but i don't understand them atm ;)
Do you have any links where this is explained? Where/How do I set the variables and parameters?
 
May very well be that your macros are better, but i don't understand them atm ;)
Do you have any links where this is explained? Where/How do I set the variables and parameters?

Voice Attack has commands that allow you to set a variable. And you can choose the variable type - boolean, integer, string. All variables are global so that you can set them in one macro and use them in another macro. My second post shows the commands for setting the variables.
 
Last edited:
Anyone?

People keep on suggesting they're firing in (CTRL-V) multi-line entries into the coms yet it seems to fail for me?

What is seems to need is a reserved command in the coms window to throw a line feed so you can simply fire in "This is line 1</lf>This is line 2</lf>This is line 3"?
 
Sorry, I think I probably lead you or others to believe I'm doing multi-line at one time - I'm not. Here's pseudo-code how I do it:

- I manually open the chat window, select my target and make sure I'm sending him (or local) messages
- Press Button "X" on button box
- VA Monitors that joystick device
- Script in VA
-- Windows command line to nircmdr to open demands-1.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Windows command line to nircmdr to open demands-2.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Windows command line to nircmdr to open demands-3.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Esc to close chat window
- Back to normal flight

So my 3 demands files would contain roughly:

1. Argh, I'm your friendly neighborhood pirate!
2. Please come to a stop IMMEDIATELY and no harm will become yee
3. If yee does not stop I'll be openin' fire!!!

That way I get three "lines" sent to the target so it's easier for them to read

Make more sense? Sorry if I confused you!

~X
 
Sorry, I think I probably lead you or others to believe I'm doing multi-line at one time - I'm not. Here's pseudo-code how I do it:

- I manually open the chat window, select my target and make sure I'm sending him (or local) messages
- Press Button "X" on button box
- VA Monitors that joystick device
- Script in VA
-- Windows command line to nircmdr to open demands-1.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Windows command line to nircmdr to open demands-2.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Windows command line to nircmdr to open demands-3.txt and read contents to clipboard
-- Ctrl+V to paste that in the open window
-- Enter to send message
-- Esc to close chat window
- Back to normal flight

So my 3 demands files would contain roughly:

1. Argh, I'm your friendly neighborhood pirate!
2. Please come to a stop IMMEDIATELY and no harm will become yee
3. If yee does not stop I'll be openin' fire!!!

That way I get three "lines" sent to the target so it's easier for them to read

Make more sense? Sorry if I confused you!

~X



OK!

BTW... You can do it natively in VA:-

Set Text [TextFromFile] to [C:\voiceattackline-1.txt]
Set Windows clipboard to '{TXT:TextFromFile}'
Press Left Ctrl+V keys and hold for 0.06 seconds and release
 
Last edited:
Back
Top Bottom