[Resolved] Error in Help File Topic GetWindowTextEx

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

[Resolved] Error in Help File Topic GetWindowTextEx

Post by jpuziano » Mon Apr 07, 2008 5:40 pm

Marcus wrote:Macro Scheduler 10.1 is now available.

Changes since v10:

Added: Text capture commands can now capture text from DOS boxes
Hi Marcus,

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
Neither command could pull the text from a DOS box.

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
The "Ex" was omitted so you may want to add it in.

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
Just a thought...

Thanks for the new functionality and take care.
Last edited by jpuziano on Sat Sep 27, 2008 6:50 am, edited 1 time in total.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Re: Error in Help File Topic GetWindowTextEx

Post by jpuziano » Sat Sep 27, 2008 6:49 am

jpuziano wrote: I noticed in the Help File topic for GetWindowTextEx> topic, your example reads:

Code: Select all

GetWindowText>Document - WordPad,WordPadText
The "Ex" was omitted so you may want to add it in.
Just checked Help in 10.1.21 and noticed it was fixed, thanks.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts