Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert copied snippet to editor
#1
Dear Gintaras

I was wondering if that will be possible to add an option to insert the copied snippet code into editor directly? Sometimes I need to find more than one element and it would be nice if I could insert code snippetsĀ  this way. Because I don't need to insert window varĀ  again and again.

Thanks


Attached Files Image(s)
   
#2
I also noticed this, window variables always duplicate insertion after acquiring multiple controls
#3
You can copy-paste, or drag-drop.

Maybe in the future LA will have command "delete duplicate wnd.find". It would replace code1 with code2.

code 1
Code:
Copy      Help
var w = wnd.find(1, "LibreAutomate", "HwndWrapper[Au.Editor;*");
var e = w.Elm["BUTTON", "Find UI element"].Find(1);

var w2 = wnd.find(1, "LibreAutomate", "HwndWrapper[Au.Editor;*");
var e2 = w2.Elm["BUTTON", "NuGet"].Find(1);

code2
Code:
Copy      Help
var w = wnd.find(1, "LibreAutomate", "HwndWrapper[Au.Editor;*");
var e = w.Elm["BUTTON", "Find UI element"].Find(1);

var e2 = w.Elm["BUTTON", "NuGet"].Find(1);
#4
Thanks that is going to be a great benefit to LA.

To improve the user experience for LA users like me who frequently use elm.find, a helpful addition could be the ability to determine the found elm variable names directly from the Elm UI text or make changes to the variable names before inserting them into the editor. This would help avoid confusion, especially when dealing with multiple variables named e1, e2, etc. Would you like suggestions on how to implement this modification?

Thanks again!


Forum Jump:


Users browsing this thread: 4 Guest(s)