You are an absolute treasure, Pfeil!
Honestly, I had been reading through dozens of your replies throughout the years on various questions, and had a secret hope that you would be so kind as to respond to me as well when I posted ^_^
I truly appreciate your swift and insightful response, and thank you sincerely!
I had a lot of trouble getting the NATO alphabet to function, but guiding me back to use the "Wait for Spoken Response" command now has things running fairly smoothly.
I'm certain the code is amateur and janky, and I was hoping you're genius might help me finish up the last 5ish% of this project.
There's some strange nuances that are occurring with missing letters in several of the entries. Most are working fine, but "Andromedae" always types "ndromeda" or "anromedea," "Fong Wang" always types "Fong Wng," "Indi" always types "Ndi," "Canis" always types "Cnis," and "Dahan" always types "Dahn." It seems to struggle inputting an 'A' specifically in most of the examples. Most other inputs work completely fine, (although 'A' is frustratingly often interpreted as '8'), and I've gone into "Add/Remove Dictionary Words" to force feed the Voice Recognition some of the whacky ones (and not so whacky ones too, like the difference between A and 8!). Even "Wredguia" is working perfectly. For a while it really didn't like repeating letters (example "Ross" would type "Ros", and "Gamma" would type "Gama"), but this seems to be working now for some reason. I've also tried setting my Command Weight to 100 hoping to force it to take something from the list, but it didn't make any discernable difference from the default Command Weight.
PS. I'm pretty sure my "Set text [System_Input] to [System_Input] (Replace 'x' with 'y')" lines are all doing a whole lot of nothing, but I've left them in there because it's working about 95% the way I'd like. Also, the \\notations\\ are not in the actual code.
Here's the code:
\\Trigger words\\
When I say: [lay in a; plot a; plot us a; set; set a;set up a;set us up a; set in a; plan; plan a; plan us a; prepare; prepare a] [new;] [system;] [destination; path; route; course] [please;]
\\Play Random Voice Line\\
Set small int (condition) [Plot_Course_Response] value as random from 1 to 2
Begin Small Integer Compare : [Plot_Course_Response] Equals 1
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Acknowledgements\Understood.mp3'
End Condition
Begin Small Integer Compare : [Plot_Course_Response] Equals 2
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Acknowledgements\Preparing now.mp3'
End Condition
\\Open the Galaxy Map and Click in the Search Bar\\
Pause 0.1 seconds
Press . > key and hold for 0.1 seconds and release
Pause 3 seconds
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Crew Commands\Ready and waiting.mp3'
\\Beginning of Voice Input Loop (A BAD loop made with Markers X,D). Continues until [System_Input] = done, finished, or go\\
Pause 0.1 seconds
Marker: Still Speaking
Set text [System_Input] to 'Null'
Wait for spoken response: 'a; b; beat; c; see; sea; seat; d; e; f; g; sheet; h; i; j; k; l; m; n; and; ; an; in; o; all; p; q; r; are; s; t; u; you; v; w; x; y; z; zero; one; two; three; four; five; six; seven; eight; nine; 0; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36 ; 37; 38; 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 71; 73; 74; 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; 91; 92; 93; 94; 95; 96; 97; 98; 99; -; Alcor; Alioth; Alpha Centauri; Altair; andromedea; Arque; Asellus; Asellus Primus; Asterope; Barnard's Star; Borann; Bunda; Canis; centauri; Ceos; Chakpa; Colonia; Dahan; dark; Deciat; Delphi; Dezhra; Doris; Draconis; Epsilon; Epsilon indi; Eurybia; Fong Wang; Fujin; Gama; Gamma; Gateway; Hera; Horsehead; Hyades; Indi; Jackson's Lighthouse; Jeng; Kamitra; Khun; Kuwemaki; Kuk; Laksak; lave; leesti; lembava; LHS; LP; luyten's star; maia; mainani; majoris; merope; mizar; muang; Nebula; Nuenets; Ogmar; Ori; Orion; Parutis; Primus; Procyon; Ragnorak; Rackham's Peak; Rhea; Robigo; Ross; Sagittarius; Sector; Shinrarta Dezhra; Shinrarata; Sigma; Sirius; Sothis; Taygeta; Theta; Ursae; Wredguia; Wolf; Wyrd; Yanyan; Yoru; space; delete; back; finished; done; go; restart; reset; start over'
\\Appropriate UI mouse clicks and "backspace" key to clear the Input Field\\
Begin Text Compare : [System_Input] Equals 'restart'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'reset'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'start over'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
\\Checking for nuanced input commands to navigate the Search Field: delete, back\\
Begin Text Compare : [System_Input] Equals 'delete'
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'back'
Press Left key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
\\Checking for nuanced input to designate the user is done inputting\\
Begin Text Compare : [System_Input] Equals 'finished'
Jump to Marker: Finished
End Condition
Begin Text Compare : [System_Input] Equals 'done'
Jump to Marker: Finished
End Condition
Begin Text Compare : [System_Input] Equals 'go'
Jump to Marker: Finished
End Condition
\\A bunch of probably useless crap to try to make it more accurate\\
Set text [System_Input] to [System_Input] (Replace 'zero' with '0')
Set text [System_Input] to [System_Input] (Replace 'one' with '1')
Set text [System_Input] to [System_Input] (Replace 'two' with '2')
Set text [System_Input] to [System_Input] (Replace 'three' with '3')
Set text [System_Input] to [System_Input] (Replace 'four' with '4')
Set text [System_Input] to [System_Input] (Replace 'five' with '5')
Set small int (condition) [Plot_Course_Response] value as random from 1 to 2
Begin Small Integer Compare : [Plot_Course_Response] Equals 1
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Acknowledgements\Understood.mp3'
End Condition
Begin Small Integer Compare : [Plot_Course_Response] Equals 2
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Acknowledgements\Preparing now.mp3'
End Condition
Pause 0.1 seconds
Press . > key and hold for 0.1 seconds and release
Pause 3 seconds
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Crew Commands\Ready and waiting.mp3'
Pause 0.1 seconds
Marker: Still Speaking
Set text [System_Input] to 'Null'
Wait for spoken response: 'a; b; beat; c; see; sea; seat; d; e; f; g; sheet; h; i; j; k; l; m; n; and; ; an; in; o; all; p; q; r; are; s; t; u; you; v; w; x; y; z; zero; one; two; three; four; five; ...'
Begin Text Compare : [System_Input] Equals 'restart'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'reset'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'start over'
Move mouse cursor to screen coordinates (707, 95)
Pause 0.1 seconds
Click left mouse button
Move mouse cursor to screen coordinates (707, 128)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'delete'
Press Back key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'back'
Press Left key and hold for 0.1 seconds and release
Jump to Marker: Still Speaking
End Condition
Begin Text Compare : [System_Input] Equals 'finished'
Jump to Marker: Finished
End Condition
Begin Text Compare : [System_Input] Equals 'done'
Jump to Marker: Finished
End Condition
Begin Text Compare : [System_Input] Equals 'go'
Jump to Marker: Finished
End Condition
Set text [System_Input] to [System_Input] (Replace 'zero' with '0')
Set text [System_Input] to [System_Input] (Replace 'one' with '1')
Set text [System_Input] to [System_Input] (Replace 'two' with '2')
Set text [System_Input] to [System_Input] (Replace 'three' with '3')
Set text [System_Input] to [System_Input] (Replace 'four' with '4')
Set text [System_Input] to [System_Input] (Replace 'five' with '5')
Set text [System_Input] to [System_Input] (Replace 'six' with '6')
Set text [System_Input] to [System_Input] (Replace 'seven' with '7')
Set text [System_Input] to [System_Input] (Replace 'eight' with '8')
Set text [System_Input] to [System_Input] (Replace 'nine' with '9')
Set text [System_Input] to [System_Input] (Replace 'beat' with 'B')
Set text [System_Input] to [System_Input] (Replace 'see' with 'C')
Set text [System_Input] to [System_Input] (Replace 'sea' with 'C')
Set text [System_Input] to [System_Input] (Replace 'seat' with 'C')
Set text [System_Input] to [System_Input] (Replace 'sheet' with 'G')
Set text [System_Input] to [System_Input] (Replace 'and' with 'N')
Set text [System_Input] to [System_Input] (Replace 'in' with 'N')
Set text [System_Input] to [System_Input] (Replace 'an' with 'N')
Set text [System_Input] to [System_Input] (Replace 'all' with 'O')
Set text [System_Input] to [System_Input] (Replace 'are' with 'R')
Set text [System_Input] to [System_Input] (Replace 'you' with 'U')
Set text [System_Input] to [System_Input] (Replace 'are' with 'R')
Set text [System_Input] to [System_Input] (Replace 'La. chess' with 'LHS ')
Set text [System_Input] to [System_Input] (Replace 'NDI' with 'Indi')
Set text [System_Input] to [System_Input] (Replace 'space' with ' ')
Pause 1 second
Press variable key(s) [System_Input] and hold for 0.2 seconds and release
Jump to Marker: Still Speaking
Marker: Finished
Move mouse cursor to screen coordinates (703, 157)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Profile sounds\ED\Course Headings\((RS - CH setting course))\Verbose\Locking target and setting course.mp3' (and wait until it completes)
Pause 2 seconds
Move mouse cursor to screen coordinates (1822, 603)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Targeting\Course locked 2.mp3'
Pause 2 seconds
Move mouse cursor to screen coordinates (99, 1007)
Click left mouse button
Set text [System_Input] to [System_Input] (Replace 'six' with '6')
Set text [System_Input] to [System_Input] (Replace 'seven' with '7')
Set text [System_Input] to [System_Input] (Replace 'eight' with '8')
Set text [System_Input] to [System_Input] (Replace 'nine' with '9')
Set text [System_Input] to [System_Input] (Replace 'beat' with 'B')
Set text [System_Input] to [System_Input] (Replace 'see' with 'C')
Set text [System_Input] to [System_Input] (Replace 'sea' with 'C')
Set text [System_Input] to [System_Input] (Replace 'seat' with 'C')
Set text [System_Input] to [System_Input] (Replace 'sheet' with 'G')
Set text [System_Input] to [System_Input] (Replace 'and' with 'N')
Set text [System_Input] to [System_Input] (Replace 'in' with 'N')
Set text [System_Input] to [System_Input] (Replace 'an' with 'N')
Set text [System_Input] to [System_Input] (Replace 'all' with 'O')
Set text [System_Input] to [System_Input] (Replace 'are' with 'R')
Set text [System_Input] to [System_Input] (Replace 'you' with 'U')
Set text [System_Input] to [System_Input] (Replace 'are' with 'R')
Set text [System_Input] to [System_Input] (Replace 'La. chess' with 'LHS ')
Set text [System_Input] to [System_Input] (Replace 'NDI' with 'Indi')
Set text [System_Input] to [System_Input] (Replace 'space' with ' ')
Pause 1 second
\\Input was valid, type it into the field, return to Marker and await further input\\
Press variable key(s) [System_Input] and hold for 0.2 seconds and release
Jump to Marker: Still Speaking
\\Once "System_Input" = finished, done, go, move to this place. UI mouse movements to navigate to the proper input and lock in the travel route\\
Marker: Finished
Move mouse cursor to screen coordinates (703, 157)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Profile sounds\ED\Course Headings\((RS - CH setting course))\Verbose\Locking target and setting course.mp3' (and wait until it completes)
Pause 2 seconds
Move mouse cursor to screen coordinates (1822, 603)
Pause 0.1 seconds
Click left mouse button
Pause 0.1 seconds
Play sound, '{VA_SOUNDS}\hcspack-CARINA\Targeting\Course locked 2.mp3'
Pause 2 seconds
\\Exit the Map\\
Move mouse cursor to screen coordinates (99, 1007)
Click left mouse button
Any wisdom or light you can shine on the situation?
I've seen some of your other responses doing Else/If statements to check and type every letter, which I'm sure solves some, if not all, of the missing repeated letters, but it seemed over my head when trying to apply it to this.
I'm also not sure if there's a way to automatically add a space to the end of inputs such as Wolf; LHS; LP; etc. I've tried putting Wolf ' '; LHS ' ': LP ' '; etc, but to no avail.
Oh, also I didn't originally have things like "see, sea, she" as options in the "Wait for spoken response" field, and not entirely sure it's necessary, but it just kept registering those words when I was trying certain Letter Input, so I put them in and tried to convert them into to the proper response.