J Cook Posted July 6, 2004 Report Share Posted July 6, 2004 Hey there, I just cant figure out how I can make a macro that will open another app when i manually open an app? I dont want both apps opened by use of a simple batch file. I want Macro Express to recognize the app when it gets started (through Startmenu or linked datafile etc.) and then seperately load another app. Ive tried a few sort of scripts but they dont work. It seems the primary app doesnt get recognized. So heres attempt 1 Noobies' attempt 2 Anyone who can tell me what i did wrong ? (Hope im clear enough, English is not my primary language) Thanks! Quote Link to comment Share on other sites More sharing options...
floyd Posted July 6, 2004 Report Share Posted July 6, 2004 J Cook - I am not sure I understand. Are you saying that you want the save.exe program to launch automatically when the radLight3.exe program is launched? Or do you want to manually run a macro that will launch the save.exe only if the radLight3.exe program is already running? Quote Link to comment Share on other sites More sharing options...
matt Posted July 7, 2004 Report Share Posted July 7, 2004 Hey J Cook, Have you tried using the Window Title default activation. IE When Macro Express sees the window Notepad then activate the macro. I am not sure if this is what you are trying to accomplish, just hoping I understood the question. Quote Link to comment Share on other sites More sharing options...
J Cook Posted July 7, 2004 Author Report Share Posted July 7, 2004 Thanks for the replies, I am not sure I understand. Are you saying that you want the save.exe program to launch automatically when the radLight3.exe program is launched?Correct.If Radlight is launched (in any way, Startmenu, linked file etc.) Macro Expres needs to recognize that and launch Save.exe. Shouldn't be too hard I think but so far my efforts have failed Have you tried using the Window Title default activation. IE When Macro Express sees the window Notepad then activate the macro. How do I do that ? The only command I found so far that uses the Window Title activation is the Activate/Launch Program command. But that will only launch the app and activate the Window Title of that same app. It doesn't use a "recognize-feature" i suppose?I thought you could only let Macro Express see Window Titles by assigning a control? Also, Save.exe is an invisible app. Its only resident in memory with no GUI. Quote Link to comment Share on other sites More sharing options...
floyd Posted July 7, 2004 Report Share Posted July 7, 2004 J Cook - 1) Create a macro with the following code: If Not Program Name "save.exe" running Program Launch: "save.exe" End If 2) Scope it to the radLight3.exe program. Do this from the Scope tab and make sure that the Run If On Top box is checked. 3) Set the automatic activation to be from a Window Control gaining focus. This is done from the Properties tab and is similar to using the Get Control command. Capture the radLight.exe window. The example shows notepad.exe, but you get the idea. And I would choose the Control Focused option. Now, whenever the radLight3.exe program gains focus, and if the save.exe program is not launched, then it will be launched. Otherwise, the macro is ignored. Quote Link to comment Share on other sites More sharing options...
J Cook Posted July 10, 2004 Author Report Share Posted July 10, 2004 I regret it it took so long for me to reply But thanks a lot for your help The script works great! Thanks for the clear explanation and helping me out.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.