Author Topic: Create Dynamic ED left panel reset  (Read 1105 times)

BushpigUK

  • Newbie
  • *
  • Posts: 2
Create Dynamic ED left panel reset
« on: December 22, 2020, 07:40:01 AM »
Hello all, being new to VA l could do with some help please. Reading various forums it too appears to be a commonly experienced issue with the latest version of ED (Elite Dangerous).

Basically there is no way to reset any of the UI Panels and as such, when you go into say the Left UI (User Interface) Panel and select the contacts tab, and then come out of it. The system will keep that position in memory. Next time you go back, you open the last place you where in.

That would not usually be an issue, however when trying to create for example an automated Docking Request, unless you start you can reset the Automation to start from a Tab, let's say the Navigation Panel (1st TAB, 4 in total on Left UI Panel), the automation gets confused and selects the incorrect areas.

Is there a way to create a plug-in or .vap that can either name the first TAB as a dynamic name, or location.

Again l am not a programmer and so a basic option would be appreciated. If you do create some script in VA, a little explanation would be greatly appreciated!

Thank you - Happy flying!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4790
  • RTFM
Re: Create Dynamic ED left panel reset
« Reply #1 on: December 22, 2020, 08:45:13 AM »
Have you looked into any of the third-party profiles available for that game? As you mention, it's a common requirement to deal with those panels, so the authors of the profiles already out there likely have a solution in place.


The basic concept would be to store the last-used panel in memory using a variable, so that subsequent commands can check the value of that variable and modify their behavior accordingly.
This does not require plugins or inline functions.


If you're going to re-invent the wheel, start by reading the documentation: Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer.

These topics may also be of use:
Control flow (If, Else, ElseIf, Loop, Jump) basics
Variables and tokens summed up
« Last Edit: December 22, 2020, 07:20:55 PM by Pfeil »

BushpigUK

  • Newbie
  • *
  • Posts: 2
Re: Create Dynamic ED left panel reset
« Reply #2 on: December 23, 2020, 10:18:16 AM »
Would you be able to assist with an example of this script? For The basic concept would be to store the last-used panel in memory using a variable, so that subsequent commands can check the value of that variable and modify their behavior accordingly.


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4790
  • RTFM
Re: Create Dynamic ED left panel reset
« Reply #3 on: December 23, 2020, 11:23:41 AM »
Something like this:
Code: [Select]
Set integer [targetPanel] value to 3
Begin Integer Compare : [lastPanel] Is Less Than [targetPanel]
    Start Loop While : [lastPanel] Is Less Than [targetPanel]
        Press NumPad Add key and hold for 0,1 seconds and release
        Set integer [lastPanel] to [lastPanel] plus 1
    End Loop
Else If Integer Compare : [lastPanel] Is Greater Than [targetPanel]
    Start Loop While : [lastPanel] Is Greater Than [targetPanel]
        Press NumPad Subtract key and hold for 0,1 seconds and release
        Set integer [lastPanel] to [lastPanel] minus 1
    End Loop
End Condition