10-18-2012, 08:55 PM
Hello
indentation maybe.
Try something like :
int hwnd=TriggerWindow
if wintest(hwnd "new file - metapad" "metapad")
______out "THIS IS METAPAD" <------------------------------- (type TAB to produce the undescores on new line. In QM, if... statements must be indented if not on the same line as the if condition test)
else if wintest(hwnd "Untitled - Notepad2-mod" "Notepad2") out "HELLO NOTEPAD2"
Highlight if word in editor, hit F1 and look for examples.
I did not test my correction as i don't have the same functions. But the idea is there
HTH. Regards
indentation maybe.
Try something like :
int hwnd=TriggerWindow
if wintest(hwnd "new file - metapad" "metapad")
______out "THIS IS METAPAD" <------------------------------- (type TAB to produce the undescores on new line. In QM, if... statements must be indented if not on the same line as the if condition test)
else if wintest(hwnd "Untitled - Notepad2-mod" "Notepad2") out "HELLO NOTEPAD2"
Highlight if word in editor, hit F1 and look for examples.
I did not test my correction as i don't have the same functions. But the idea is there
HTH. Regards