smmiley4ever Posted November 9, 2015 Share Posted November 9, 2015 Hello Guysi have an issue to auto change between 2 same Tasks that has the same nameis there a way how to change the name of one of the running applicationor is there a unique identification for each Task(application) runningor if any one knows a script 2 run this 2 tasks one after the otherjust as an examplethis is my running script: Thank you in advance for your helpMy Best Regards Link to comment Share on other sites More sharing options...
jguinch Posted November 9, 2015 Share Posted November 9, 2015 You can identify each window with its handle. Look at WinGetHandle in the help file. smmiley4ever 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Radiance Posted November 9, 2015 Share Posted November 9, 2015 You can use WinList() to see all current windows with title and handle.Like jguinch already stated, the handle would be an unique identifier and can be used with WinSetTitle to change the window title. smmiley4ever 1 Link to comment Share on other sites More sharing options...
smmiley4ever Posted November 9, 2015 Author Share Posted November 9, 2015 can any one share with me the script please sorry i dont understand much in scripting but im trying to understand i just could not see what you mean by using WinList or WinGetHandle i would appreciate you efforts guys Thxx a lot Link to comment Share on other sites More sharing options...
TheSaint Posted November 9, 2015 Share Posted November 9, 2015 (edited) Study the Help file entry for WinList, where you use that to get a list of all current windows running (many will be hidden ones used by the system). You then filter that list, so that only windows with Mozilla Firefox: IBM Edition are returned. Then use WinGetHandle on those to get a unique ID for each.Basically, as you loop through the window titles, you test for the title text you are after in the window name. Assign each found to its own unique variable, then use that for your handle call, etc. Edited November 9, 2015 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
JohnOne Posted November 9, 2015 Share Posted November 9, 2015 Example() ; Example will switch between all windows in list Func Example() Local $aWinList = WinList("New Tab - Mozilla Firefox: IBM Edition") ; include title of window For $i = 1 To $aWinList[0][0] ; loop through all windows with that title WinActivate($aWinList[$i][1]) ; Activate a window Sleep(2000) ; Wait 2 seconds Next EndFunc ;==>ExampleYou should be able to get started from that, post your efforts with any further questions. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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