AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting current path from active save dialog

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Fri Feb 19, 2010 6:02 am    Post subject: Getting current path from active save dialog Reply with quote

Hi Guys.

I can extract my current path from explorer windows using:

Code:
WinGetClass explorerClass, A
ControlGetText currentPath, Edit1, ahk_class %explorerClass%
msgbox %currentPath%


Does anyone know how to achieve the same thing in save/open dialog windows? they don't seem to have an "edit" area in the same way explorer windows do

any ideas would be much appreciated Smile
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Fri Feb 19, 2010 7:47 am    Post subject: Reply with quote

bitcloud wrote:
Does anyone know how to achieve the same thing in save/open dialog windows? they don't seem to have an "edit" area in the same way explorer windows do


Are you referring to these dialogs in an Ahk script?
If so, I think you need to read the command more closely.

Are you referring to save/open of programs not created by Ahk?
If so, I suggest you open "AutoIt3 Window Spy" located in the Start->Programs-> AutoHotkey folder and become familiar with it.

Then use it to see the names of the controls in you favorite programs.

I think you'll see that your statement may be incorrect.
Back to top
View user's profile Send private message
hadlow
Guest





PostPosted: Fri Feb 19, 2010 8:06 am    Post subject: Reply with quote

If I understand your request correctly, I believe this post has exactly what you are looking for.
Back to top
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Fri Feb 19, 2010 11:35 am    Post subject: Reply with quote

Thanks guys. Leef_me is right...

Explorer dialogs use edit1, and save dialogs use edit2
(And both are hidden under another edit box)
Back to top
View user's profile Send private message
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Fri Feb 19, 2010 12:05 pm    Post subject: Reply with quote

Actually... leef_me is only partly right...

Some applications have a save dialog with no discernible "full path" dialog (not sure the difference... perhaps they're using a legacy save dialog)

those are the ones i'm having trouble with...
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Fri Feb 19, 2010 8:57 pm    Post subject: Reply with quote

I have a few 'legacy' programs that I work with, they have this type dialog.

I stand corrected Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group