i have the following code. i tried winwait but that didnt work.
I am trhying winexisting and it doesn't work. I know this because the msgbox
does not display the "here" message hence the controlclick will not work.
the window is a window that i created. the didtle is correct "MCH Win2"
see attachment this is a screen print.
opt("WinTitleMatchMode", 2) while 1 if winexists("MCH Win2") then ExitLoop EndIf sleep(400) wend msgbox(0,"","here") controlclick("MCH Win2","","Button1","left")