samfisherirl / UIAViewer.ahk-for-UIAutomation.ahk

UIAViewer.ahk for UIAutomation.ahk, with some modifications
10 stars 1 forks source link

Macro code formatting #2

Open Descolada opened 1 year ago

Descolada commented 1 year ago

It seems the functions have either 2 or 4 spaces as indentation, which makes the resulting code quite ugly and hard to read. For example:

UI(el){
   WinActivate, ahk_id %el%
   WinWaitActive, ahk_id %el%
  el := UIA.ElementFromHandle(el) ; <----- 2 spaces instead of 4
    return el
}

Same problem with Do_Click.