Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1997-08-07
5
Medium Priority
?
292 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

916 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