I have two windows open and not minimized (Autoit help and RelianceNetconnect). And the current focus is with a Notepad file. This is my Autoit script :
DIM $s=WinActivate("AutoIt Help") MsgBox(0,"Check",$s)
This works and the autoit jelp window come to focus. The Message Box prints this
This is my second Autoit Script:
DIM $s=WinActivate("Reliance Netconnect") MsgBox(0,"Check",$s)
This does not work, i.e the reliance netconnect window does not come to focus. The MessageBos Prints
This link says that
WinActivate either returns the handle to the window requested if successful or returns 0 if failed.
In my second case it returns a non zero value. Then why is the window not getting focused?