OK, so after a bit of tinkering, I think I've got something that may be of some use...
In whatever EDDI script you are using to access the RouteDetails() function, add this line just before the
{set system to RouteDetails("human")}
(or whatever route you are requesting) line:
Code:
{SetState('routedetails_destination', '')}
This makes sure the 'routedetails_destination' variable is made blank before the route is created. This is important for the VA parts.
So, in VA I've written this:
Code:
Write [Blue] 'Dest: {TXT:EDDI state routedetails_destination}.' to log
Set decimal [timer] value to 0
Start Loop While : [EDDI state routedetails_destination] Equals ''
Pause 1 second
Set decimal [timer] to [timer] plus 1.00000
Write [Blue] 'Timer: {DEC:timer}' to log
Begin Decimal Compare : [timer] Equals 10.00000
Loop Break
End Condition
End Loop
Begin Text Compare : [EDDI state routedetails_destination] Does Not Equal ''
Set Windows clipboard to '{TXT:EDDI state routedetails_destination}'
Write [Blue] 'Destination set: {TXT:EDDI state routedetails_destination}.' to log
Else
Write [Blue] 'Timer: Failed to copy to clipboard within 10 seconds.' to log
End Condition
I've got the 'Write to log' commands in there for testing, so just delete them once you're happy with it all. You could even change the last line " ...failed to copy..." to make EDDI say that it's failed.
Put the above code in a new VA command called
((EDDI route details))
. This will then run every time the RouteDetails() function is used in EDDI, and (fingers crossed) should copy whatever destination is set by that function, to the Windows Clipboard. It will wait for the destination to be set (that's the WHILE loop), but if 10 seconds pass without a destination being set, it will exit the command. This prevents it waiting forever. You can adjust the timer to however long you want by changing the line that says '10.00000' to any other number.
I've also attached a VA profile with just that command in it, so you can import it if you don't feel up to writing it yourself.
Good luck, and I hope this helps with what you want to achieve.
DC
EDIT: Oh, I should have said, to be clear, that the line
{SetState('routedetails_destination', event.system)}
still needs to be at the end of the RouteDetails() script.