RE: The inevitable has happened
As I mentioned to Ira before, I couldn't get sys_send_keys to work but I did have a way to reliably start another application. Your questions prompted me to look it up.
Attached is a "Launcher" that I've used in the past to start multiple A5 apps. It uses the following script on the "OnDoubleClick" event of the browse table to open another A5 window with the new application running:
app = parentform:Browse1:Db_Name.text
sys_shell( "D:\a5v4\alpha5.exe "+app+" -title="+parentform:browse1:app_name.text)
END
In this case, "D:\a5v4\alpha5.exe" is the full pathname of my A5 executable but this could easily be "calculated" by the program. In fact, some of the directory variables Ira created may have already done this.
Of course, the "-title=" is not required but it helps in the "launcher" because the name will then appear in the button on the Win98 task bar.
Adding :A5.close() to a line just before the END statement will close the current application and A5 window leaving only the new app. (For my "launcher" I wanted to keep the launcher open so I could go back to it via the Win98 task bar and start another app.)
I haven't had the time to work on adding this to the script Ira and I have been 'collaborating' on but it shouldn't be too difficult.
Cal
As I mentioned to Ira before, I couldn't get sys_send_keys to work but I did have a way to reliably start another application. Your questions prompted me to look it up.
Attached is a "Launcher" that I've used in the past to start multiple A5 apps. It uses the following script on the "OnDoubleClick" event of the browse table to open another A5 window with the new application running:
app = parentform:Browse1:Db_Name.text
sys_shell( "D:\a5v4\alpha5.exe "+app+" -title="+parentform:browse1:app_name.text)
END
In this case, "D:\a5v4\alpha5.exe" is the full pathname of my A5 executable but this could easily be "calculated" by the program. In fact, some of the directory variables Ira created may have already done this.
Of course, the "-title=" is not required but it helps in the "launcher" because the name will then appear in the button on the Win98 task bar.
Adding :A5.close() to a line just before the END statement will close the current application and A5 window leaving only the new app. (For my "launcher" I wanted to keep the launcher open so I could go back to it via the Win98 task bar and start another app.)
I haven't had the time to work on adding this to the script Ira and I have been 'collaborating' on but it shouldn't be too difficult.
Cal
Comment