Hi Marcus,Marcus wrote:Macro Scheduler 10.1 is now available.
Changes since v10:
Added: Text capture commands can now capture text from DOS boxes
Using old version 10.023 I opened a DOS Box ("Command Prompt" window) and tested two text capture commands with the script below. The SetFocus> line is only there to prove I am finding the correct window:
Code: Select all
//Before running this I had already opened a DOS Box ("Command Prompt" window)
//in XP by clicking start/All Programs/Accessories/Command Prompt
SetFocus>Command Prompt
GetWindowText>Command Prompt,captured_text
MDL>captured_text
GetWindowTextEx>Command Prompt,captured_text
MDL>captured_text
Then I upgraded to ver 10.1.01.
GetWindowText> still cannot pull the text but GetWindowTextEx> now does the job... thanks for this.
I noticed in the Help File topic for GetWindowTextEx> topic, your example reads:
Code: Select all
GetWindowText>Document - WordPad,WordPadText
To help future users discover this new ability, you might even want to mention in the Help File that GetWindowTextEx> can pull text from a DOS Box.
Many users learn best from examples (I sure like them) so maybe even throw in a DOS Box example... maybe something like...
Code: Select all
Run>cmd.exe
WaitWindowOpen>C:\WINDOWS\system32\cmd.exe
Let>MSG_HEIGHT=230
GetWindowTextEx>C:\WINDOWS\system32\cmd.exe,captured_text
MDL>captured_text
Thanks for the new functionality and take care.