Stoph Posted April 4, 2004 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.
CyberSlug Posted April 4, 2004 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!
Stoph Posted April 4, 2004 Author Posted April 4, 2004 I believe this is exactly the strategy I need. Thanks
Stoph Posted April 4, 2004 Author 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
Valik Posted April 5, 2004 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.
CyberSlug Posted April 5, 2004 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!
Stoph Posted April 5, 2004 Author Posted April 5, 2004 hmm yea i figured out an alternate way to get it as i wanted thanks for the help!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now