| View previous topic :: View next topic |
| Author |
Message |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Fri Feb 19, 2010 6:02 am Post subject: Getting current path from active save dialog |
|
|
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  |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Fri Feb 19, 2010 7:47 am Post subject: |
|
|
| 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 |
|
 |
hadlow Guest
|
Posted: Fri Feb 19, 2010 8:06 am Post subject: |
|
|
| 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
|
Posted: Fri Feb 19, 2010 11:35 am Post subject: |
|
|
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 |
|
 |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Fri Feb 19, 2010 12:05 pm Post subject: |
|
|
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 |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Fri Feb 19, 2010 8:57 pm Post subject: |
|
|
I have a few 'legacy' programs that I work with, they have this type dialog.
I stand corrected  |
|
| Back to top |
|
 |
|