DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: console output to memo  (Read 6,069 times)

jdmarch

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 186
console output to memo
« on: April 23, 2010, 02:46 PM »
Using virtual launch string "appcapappendmemo" in a simple alias:
appcapappendmemo python c:\mypath\clipsum.py

1. Even though .py is an executable extension on my system (python), if I specify the command as only a .py file, it says "Error launching..." It works ok as shown above.

2. The output of the script goes nicely into the memo display, but the memo display does not scroll at all, must be scrolled manually each time to see the output.

3. How to clear the memo display?

4. This is moot because I ended up displaying all text from the python script, but I wanted to use the "showmemo" virtual launch string but could not find in the documentation how to combine two virtual launch strings in one alias command. Where is this described?

Thanks!
« Last Edit: April 23, 2010, 03:03 PM by jdmarch »

jdmarch

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 186
Re: console output to memo
« Reply #1 on: April 23, 2010, 03:02 PM »
While I didn't find answers by searching help or forum, I have found some answers by browsing the forum.

I learned that it's better to use:
appcap python c:\mypath\clipsum.py;;;showmemo %lastappcap%

Which does not answer 2 & 3 but makes them moot (because it clears the memo so scrolling and clearing are unnecessary.)

It does answer 4 (use three semicolons, which I now see is mentioned under "Alias launching tricks" in the help file.)

And (1)?

Thanks!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: console output to memo
« Reply #2 on: April 23, 2010, 03:24 PM »
1 is an interesting issue -- i may be able to solve that with a different call to shellexecute.

jdmarch

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 186
Re: console output to memo
« Reply #3 on: May 05, 2010, 01:06 PM »
Quote
Version 2.87.03 - May 4, 2010
· [MinorFeature] appcapappendmemo now auto scrolls to bottom of memo.
· [MinorFeature] new alias launch string to explicitly go to end of memo  (gomemobottom)

Thanks!

Original address: https://www.donationcoder.com/forum/index.php?topic=22527.0