hi all,
I try to use gettextlocation but everytime I run in new version build or run in 
other machine and this text will change.  Please advise.  In WinRunner, I never 
have this problem.  Get textlocation from Qtest run that is not stabled
Many thanks

' Get Mem Usage in Windows Task Manager
 
Dialog("Windows Task 
Manager").WinListView("SysListView32").GetTextLocation"Ppdet.exe", L, T, R, B
Ppdet = Dialog("Windows Task 
Manager").WinListView("SysListView32").GetVisibleText (300, T, 345, B)

Ann

--- On Fri, 4/22/11, Abhijeet <[email protected]> wrote:

> From: Abhijeet <[email protected]>
> Subject: Re: getvisibletext is not working well?
> To: "QTP - HP Quick Test Professional - Automated Software Testing" 
> <[email protected]>
> Date: Friday, April 22, 2011, 9:55 AM
> Hi Ann,
> 
> 1. Please provide more details like, what is the QTP
> version, what is
> the app that you are trying to automate ( in general, but
> maybe not
> helpful in your case because it's issue with
> getvisibletext)
> 
> 2. It is a good idea if you can explain what are the things
> you have
> tried already (doesn't matter if it is right or wrong).
> 
> 3. Please note that GetVisibleText is not reliable to work
> with in the
> first place.
> Is there no other way to retrieve the text besides
> GetVisibleText ?
> 
> Here are a few links you could go through, that will
> definitely help
> you to have a better understanding of this :
> 
> http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1303483370311+28353475&threadId=1354428
> 
> http://knowledgeinbox.com/forums/hp-quicktest-pro/docuementation-on-getvisibletext-and-gettextlocation-properties/?wap2
> 
> http://www.sqaforums.com/showflat.php?Cat=0&Number=410659&page=0&fpart=1&vc=1
> 
> 
> 4. Maybe you already tried this, but if you are getting a
> popup like
> "Memory could not be read", try changing the DEP settings
> (Data
> Execution Prevention settings) to 'ALWAYS OFF' on the
> execution
> machine. However, note that it's a security issue.
> 
> http://www.itechtalk.com/thread3591.html
> http://vlaurie.com/computers2/Articles/dep.htm
> http://www.agileit.com/Blog/Lists/Posts/Post.aspx?Id=609
> 
> 
> Thanks,
> Abhijeet
> 
> 
> 
> 
> On Apr 21, 9:49 pm, Mason Foley <[email protected]>
> wrote:
> > Perhaps you can provide your code to give the group a
> bit more context to
> > your issue?
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Apr 21, 2011 at 10:27 AM, ann hoang <[email protected]>
> wrote:
> > > hi all,
> >
> > > I used getvisibletext but why it didn't work
> properly.  I ran 1 version ok
> > > but next installed new version then it ran
> failed.  Please advise!  Many
> > > thanks
> >
> > > Ann
> >
> > > --
> > > You received this message because you are
> subscribed to the Google
> > > "QTP - HP Quick Test Professional - Automated
> Software Testing"
> > > group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/MercuryQTP?hl=en
> 
> -- 
> You received this message because you are subscribed to the
> Google
> "QTP - HP Quick Test Professional - Automated Software
> Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
> 

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to