How to get text from a control ?
The window has edit control: ClassNN=Edit3, Text="File.txt"
For this edit control I get text with:
Code:
ControlGetText, OutputVar, Edit3, WindowName
MSGBOX OutputVar = %OutputVar%
This works OK (displays: "OutputVar = File.txt").
The window also has static/text control: ClassNN=Static10, Text="File size: 10 KB"
For this control I tried to get text with:
Code:
ControlGetText, OutputVar, Static10, WindowName
MSGBOX OutputVar = %OutputVar%
But this doesn't work OK (displays: "OutputVar = Static").
The window also has static/text control: ClassNN=Static12, Text="File ext: txt"
For this control I tried to get text with:
Code:
ControlGetText, OutputVar, Static12, WindowName
MSGBOX OutputVar = %OutputVar%
But this doesn't work OK (displays: "OutputVar = ").
How to get text from a static/text control ?