c7aesa7r Posted July 15, 2017 Share Posted July 15, 2017 (edited) $key = "{Enter}" $winList = WinList('[CLASS:netlimiter4]') For $i = 1 to $winList[0][0] $title = $winList[$i][0] $handle = $winList[$i][1] $controlid = "" $text = "" ControlSend($handle,$text,$controlid,$key) Next Exit Can somebody help me edit this script to instead detect the window title, detect the window exe. I tried edit: $winList = WinList('[CLASS:netlimiter4]') To $winList = WinList('[CLASS:netlimiter.exe]') Edited July 15, 2017 by c7aesa7r Link to comment Share on other sites More sharing options...
c7aesa7r Posted July 17, 2017 Author Share Posted July 17, 2017 Someone? Link to comment Share on other sites More sharing options...
Danp2 Posted July 17, 2017 Share Posted July 17, 2017 It's not clear what you are trying to do. What's wrong with the existing script? Perhaps if you explained why you need to make the desired change it would make more sense. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
c7aesa7r Posted July 17, 2017 Author Share Posted July 17, 2017 The script send ENTER to minimized windows, but i want it detect the window by exe name and not window title Link to comment Share on other sites More sharing options...
Danp2 Posted July 17, 2017 Share Posted July 17, 2017 Why? What doesn't work about the existing method? AFAIC, WinList doesn't offer an option to work as you desire. Perhaps you could use ProcessList and then somehow retrieve window handles using the process ID. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
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