TheSaint Posted June 26, 2006 Share Posted June 26, 2006 (edited) I would like to get the path of an active window!This quote is an update - 6th July 2006The active window is an open folder, not a program ... so I need the path of the folder returned!This may or may not be available as part of the window text (depending on a user's folder options).I know how to get the name of the active window, but cannot find a method to determine it's path.I need this for a current update to my 'Context Options' program, so that a user could set a hotkey to call up a dialog to create a folder (or folders, etc) in the currently active window.ANY HELP WOULD BE GREATLY APPRECIATED!Context OptionsMaybe a new function - 'WinGetPath', would be a great idea ... anybody feel clever enough!Please note, that I only give kisses to women & children! Edited July 5, 2006 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...
Uten Posted June 26, 2006 Share Posted June 26, 2006 I can't test this at the moment but I think you have to get the window handel and use that to get the processhandel and then get information about the process. Somewhere in-there you should get the full path and commandline to the process running the window. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
GaryFrost Posted June 26, 2006 Share Posted June 26, 2006 http://www.autoitscript.com/forum/index.ph...st&p=200025 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
TheSaint Posted June 26, 2006 Author Share Posted June 26, 2006 http://www.autoitscript.com/forum/index.ph...st&p=200025Thanks Uten & gafrostHave Done & will do! 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...
TheSaint Posted June 26, 2006 Author Share Posted June 26, 2006 http://www.autoitscript.com/forum/index.ph...st&p=200025This did not quite supply what I needed - see my commentsPath of an open/existing window 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...
TheSaint Posted July 1, 2006 Author Share Posted July 1, 2006 (edited) Still no success here!See the latest tries, etc herePath of an open/existing windowGee it doesn't take long to get buried pages deep here! Edited July 1, 2006 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...
TheSaint Posted July 5, 2006 Author Share Posted July 5, 2006 The first post has an added quote, so that people can see at first glance what I require ... there seems to be some misunderstanding over the type of window ... nearly all answers so far talk about a program window (such as notepad).I wish that Explorer.exe returned a path for a specific window ... kind of like the way it's been suggested that notepad does.ALL & ANY HELP, IDEAS, ETC is always appreciated! 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...
Uten Posted July 7, 2006 Share Posted July 7, 2006 Explorer->tools->Folder Options->view->Display the full path in titlebar ??? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
TheSaint Posted July 8, 2006 Author Share Posted July 8, 2006 Explorer->tools->Folder Options->view->Display the full path in titlebar ???Thanks UtenYou are perfectly correct ... however, you probably missed this line in my first post -This may or may not be available as part of the window text (depending on a user's folder options).Further to that, I've gone ahead and completed my program, that relies on the user having their full path in the address bar (same scenario as titlebar ... I personally only have it displayed in the address bar, but each to their own). If the program doesn't find a ":" as the second character in the title name, then the user is prompted to change their settings. This works, but is not in my opinion very professional.I'll post my program, and an even more exciting offshoot, when I can get some more space here at the forum, or if I can get my homepage to tell me how many times my programs are being downloaded.Hopefully I have enough space, so that I can update the version of my Context Options program, which is the main program in question above?For those who have been folowing this post, or who have indeed downloaded an earlier version of my program, they might like to see the finished (but hopefully not final) version ... which has many improvements, and mostly works quite well. 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...
marfdaman Posted July 8, 2006 Share Posted July 8, 2006 Probably a stupid idea, but couldn't you just GuiCtrlRead the combobox called "Address"? Alzo Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
TheSaint Posted July 8, 2006 Author Share Posted July 8, 2006 Probably a stupid idea, but couldn't you just GuiCtrlRead the combobox called "Address"?AlzoThanks marfdamanBut errrrr, please read the above again, it says -Further to that, I've gone ahead and completed my program, that relies on the user having their full path in the address bar (same scenario as titlebar ... I personally only have it displayed in the address bar, but each to their own).I think you'll find that even though you call it a combo, and it looks like one, my code says something like "Edit1" - this is gleaned using the AutoIt Window Info program! But hey thanks for taking the time! 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...
marfdaman Posted July 8, 2006 Share Posted July 8, 2006 Sorry, missed that :"> Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
TheSaint Posted July 8, 2006 Author Share Posted July 8, 2006 Sorry, missed that :That's OK man!HAPPY CODING! 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...
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