Hi,
I have autoit program on my computer only portable version. I use Autoit vs 3.1.1.68
I want to use WinGetTitle but it always return 0.
I want to use it for retriev windows title and then i want to switch between windows.
E.g. - On start is msgbox where is info - "now choose yourt first window", i click first win - e.g. Excel, then 2. msgbox "now choose your 2. window" and i choose e.g. window folder. Then i want, that my script will switch between this windws and make my routine.
But my test code for retrieve win title still return 0. I try this on comp in work. I dont have admin rights but i belive, that this is not a reason, bacause Au3.SPY, show me win title correctly.
This is my sample code.
Pls. any suggestions?
thx a lot
Sleep( 2000 ) ; Allows switching to some other window to see if can get its title.
$title = WinGetTitle("[active]")
If $title Then
MsgBox(0, "", $title)
Else
MsgBox(0, "", "nothing")
EndIf