Solved

Changing the directory of an Open/Save dialog from ANOTHER app ?

Posted on 1997-08-07
5
279 Views
Last Modified: 2010-04-04
This question is kinda hard: I need to change the directory of an Open/Save dialog (standard Windows dialogs) of an other running application (so NOT my own). Is this possible ?
0
Comment
Question by:dms@
5 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1340852
OpenDialog.InitialDir:='c:\something...';
0
 

Author Comment

by:dms@
ID: 1340853
That's not what I mean. I want to change the directory of an open/save dialog box of an OTHER application than my own !
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1340854
This other application is You'r ?

If both is You'r you can send message to the other.

If the second is not you'r then this is possible only for some application and for only some users (Win NT you must have Debug privilages).
This is dangerous for the other application so i think that you'r problem need be resolved in another way.
0
 

Accepted Solution

by:
iainmagee earned 100 total points
ID: 1340855
I'm not sure exactly what you mean. Do you want to change the directory while the Open dialog is actually open. Or do you just want to set a default directory for the dialog.

If it's the former (which I suspect it is) then one way is to use a keyboard hook in order to actually send characters to the open dialog box. I've recently done this under a slightly different scenario, where I was sending a telephone number and settings to a comms package. You can send control codes to activate menus etc etc.

It's not going to be easy though, and I think the 'try another way' comment from mirek might be worth considering ;-)

Good luck though,

Iain
0
 

Author Comment

by:dms@
ID: 1340856
How can I send characters to the dialogbox by a keyboardhook ?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now