Stoph 0 Posted April 4, 2004 I need to know how to activate the nth matching window with winactivate. The program I use has many windows which all match the same and I am trying to move through them quickly. I have been trying to figure this out for a long time. Share this post Link to post Share on other sites
CyberSlug 6 Posted April 4, 2004 Larry's post at this thread might help.Good luck Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Stoph 0 Posted April 4, 2004 I believe this is exactly the strategy I need. Thanks Share this post Link to post Share on other sites
Stoph 0 Posted April 4, 2004 (edited) This is the code I am having a problem with (using that code Larry posted) If Not StringLen($WinHandles) Then Return ;NO "Graal" WINDOWS!!! $WinHandles = StringSplit(StringTrimRight($WinHandles),1),@LF) EndIf^- Error here: EndIf no matching If statement That's not even very important, new question: how do i detect if a window is hidden/minimized or not? say i want only windows that show up in the taskbar Edited April 4, 2004 by Stoph Share this post Link to post Share on other sites
Valik 478 Posted April 5, 2004 You are using 1 line If syntax: If <condition> Then <action> But then there is an EndIf after you assing $WinHandles. I think you need to remove the Return, but I don't know what the logic for your script is. If you want to check and if there isn't anything in $WinHandles, assign something to it, use: If Not StringLen($WinHandles) Then $WinHandles = StringSplit(StringTrimRight($WinHandles),1),@LF) Otherwise, just delete the EndIf statement. Share this post Link to post Share on other sites
CyberSlug 6 Posted April 5, 2004 To answer your second question, look at WinGetState in the help file. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Stoph 0 Posted April 5, 2004 hmm yea i figured out an alternate way to get it as i wanted thanks for the help! Share this post Link to post Share on other sites