Solved

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

Posted on 1997-08-07
5
280 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

861 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

22 Experts available now in Live!

Get 1:1 Help Now