11-26-2018, 03:00 PM
QM2 macro:
C# script in QM3:
C# code is longer but easier to read than QM2.
int w=win("- Mozilla Firefox" "MozillaWindowClass")
act w
lef 331 115 w 1
2
key L "text" Y
int i
for i 0 5
,out i
,out i*i
C# script in QM3:
var w = Wnd.Find("*- Mozilla Firefox", "MozillaWindowClass");
w.Activate();
Mouse.Click(w, 331, 115);
2.s();
Key("Left", "text", "Enter");
for(int i=0; i<5; i++) {
,Print(i);
,Print(i*i);
}
C# code is longer but easier to read than QM2.