Open a program with a function initiated
-
Hi, Thx a lot. Another question. If I want to open the program with a function initiated automatically, is that possible? For example, if start button is clicked, then paint is opened with the save command initiated.
-
Hi, Thx a lot. Another question. If I want to open the program with a function initiated automatically, is that possible? For example, if start button is clicked, then paint is opened with the save command initiated.
No, there is no way to do this. If the app you're launching doesn't support opening certain items on launch, then you can't do it, period. This kind of functionality, also, doesn't have any standards defined for it, outside of DDE, so it's implementation would be entirely up to the application your trying to launch, if it supports it at all! The only other method, though unreliable, would be to use SendKeys to try(!!!) to send the appropriate key strokes to the application you launched to get the functionality you want. The problem is that you have to launch the app, then wait, somehow, for the app to finish loading, then send the keystrokes. Also, between the time the app is launched and the keystrokes are sent, pray that the user doesn't hit any keys and doesn't click on anything with the mouse. Oh! Since Windows is a shared system, you also have to hope that no other application running in the system steals the input focus during that time too! Dave Kreskowiak Microsoft MVP - Visual Basic
-
No, there is no way to do this. If the app you're launching doesn't support opening certain items on launch, then you can't do it, period. This kind of functionality, also, doesn't have any standards defined for it, outside of DDE, so it's implementation would be entirely up to the application your trying to launch, if it supports it at all! The only other method, though unreliable, would be to use SendKeys to try(!!!) to send the appropriate key strokes to the application you launched to get the functionality you want. The problem is that you have to launch the app, then wait, somehow, for the app to finish loading, then send the keystrokes. Also, between the time the app is launched and the keystrokes are sent, pray that the user doesn't hit any keys and doesn't click on anything with the mouse. Oh! Since Windows is a shared system, you also have to hope that no other application running in the system steals the input focus during that time too! Dave Kreskowiak Microsoft MVP - Visual Basic
Thanks