Very true, Mike. And it was probably just your answer that reminded me of doing things like this and getting a huge pile of information back, which, sometimes was what I wanted and sometimes not.

Regards,
Tom


On 1/4/2013 1:16 AM, M F Mason wrote:
Hello Tom,

I think that sometimes it is difficult to know how comprehensive to make
a single answer .
The nice thing about a forum like this is that it enables multiple
answers from different people and allows the person raising the original
question to ask supplementary questions and add to their knowledge at
their own pace.

Many thanks,

Mike.

At 19:44 03/01/2013, you wrote:
That will indeed work. But sometimes it's wise to first see how much
information you're dealing with, because it may be a lot. The
FilterByType method will do just that and the Count property, well, I
think that's probably pretty self-explanatory as well. But regardless,
here's a peek at my Thunderbird window.

print Mouse.Window.Clips.FilterByType(ctText).Count
217

Wow. That's a lot of clips.

Hth,
Tom


On 1/3/2013 1:14 PM, M F Mason wrote:
Hello Steve,

I think that the following will achieve this:

print Mouse.Window.Clips.ClipsText

Cheers,

Mike.



At 14:35 03/01/2013, you wrote:
Hi,

Yep, it was.

All the best

Steve

--
Computer Room Services
77 Exeter Close
Stevenage
Hertfordshire
SG1 4PW
Tel: +44(0)1438-742286
Mob: +44(0)7956-334938
Fax: +44(0)1438-759589
Email: [email protected] <mailto:[email protected]>
Web: http://www.comproom.co.uk

*From:* M F Mason [mailto:[email protected]]
*Sent:* 29 December 2012 10:53
*To:* [email protected]
*Subject:* RE: Beginner question on Immediate Mode

Hello Steve,

I thought that in your experiment you were wanting to use the Immed app
to obtain the text in the mouse window.
Was this in fact the case?

Many thanks,

Mike.

 At 13:33 28/12/2012, you wrote:

Hi Mike,

I think Tom’s explanation does it for me and may help you as well.

Thanks for your help.

All the best

Steve

--
Computer Room Services
77 Exeter Close
Stevenage
Hertfordshire
SG1 4PW
Tel: +44(0)1438-742286
Mob: +44(0)7956-334938
Fax: +44(0)1438-759589
Email: [email protected] <mailto:[email protected]>
Web: http://www.comproom.co.uk

*From:* M F Mason
[<mailto:[email protected]>mailto:[email protected]]
*Sent:* 28 December 2012 13:03
*To:* [email protected]
*Subject:* Re: Beginner question on Immediate Mode

Hello Steve,

My understanding is that
whilst Window is indeed a property of Mouse object,
Mouse.Window will return an object which, in turn, has properties.
I do not think that
print Mouse.Window
will print out the text of the mouse window.

The Window object does have a clips method which returns a clips
object object which has a clipstext property which holds all the clips
text for the Window.
I may be missing something but I hope this helps a little.

All the best,,

Mike.

At 12:05 28/12/2012, you wrote:

Hi guys and gals?

I read with interest that in Immediate Mode, you can for example,
print out the mouse window as a variable.  I checked the reference
guide and Mouse is an object, and Window is a property.

So I opened a program, interested in what I would get, Outlook 2007 as
my example and loaded my inbox.

I then hit the Control-Shift-Q window to bring up Immediate Mode, and
typed:-

Print mouse.window

I get the error:-

Error object does not support this property or method.

So where am I going wrong?

This is not important to any project, it is just experimentation and I
want to understand what’s happening here.  I would have thought the
mouse object would hold the window property and give me some result,
whether it is numeric or a string, but looks like the window property
isn’t supported.

Interestingly, this example is also referenced in the Immediate Mode
help.

Any thoughts please?

Thanks.

All the best

Steve
--
Computer Room Services
77 Exeter Close
Stevenage
Hertfordshire
SG1 4PW
Tel: +44(0)1438-742286
Mob: +44(0)7956-334938
Fax: +44(0)1438-759589
Email: [email protected] <mailto:[email protected]>
Web: http://www.comproom.co.uk




Reply via email to