Hi Chip et al:
In Visual Studio 2010 the Forms Designer uses something called Adorners.
These appear to be WPF based and I can't get anything out of them using the WE 
Immediate Window Analysis tool.
I would create a project, open the Forms Designer and drop some controls on it 
like a TextBox and buttons.
I can not get to them using the cursor at all and can get to them with the 
Mouse but often the text is garbled when reading with the mouse.
I was going to script the window but haven't been able to use the GW WE 
Immediate Window Tool to get at the buttons, text boxes etc... within the 
window.
I have tried using the Print Mouse.xxxxx in many combinations with no luck.
I even tried using WeEvent but it does not tell me anything about the button, 
textbox etc... controls either.
Have you guys run up aginst these window types and how did you get at their 
children?
Note that I get the Adorn window info but it says it has no children so that 
doesn't seem to work either.
I remember getting the clips but there were 11 clips, they were jumbled up and 
researching I found that this type of control may be using glyphs, not sure.
Does this type of control exist in other MS software like Word etc...
Any ideas I might try to get at these controls?
Rick USA

  ----- Original Message ----- 
  From: Chip Orange 
  To: [email protected] 
  Sent: Sunday, April 22, 2012 5:14 PM
  Subject: RE: WE And Microsoft Development Environments


  Hi Rick and Kate,

  Don't forget the best place for scripting tutorials and articles is the GW 
wiki at:

  http://gwmicro.com/wiki

  Just create an account there, take 15 mins to read the article on basic 
formatting of wiki text, and then create your new article page.

  The great thing about putting stuff here, aside from there's already this 
great collection and we'd like to keep everything in one spot if possible, is 
that anyone can add more to any article to flesh it out, make corrections, link 
it to associated resources they have found, etc.

  Also, there's an associated wiki page behind the scenes for each article 
where we can discuss ideas and suggestions for how the article might be 
modified or otherwise improved.

  Chip




----------------------------------------------------------------------------
    From: Katherine Moss [mailto:[email protected]] 
    Sent: Saturday, April 14, 2012 6:06 PM
    To: [email protected]
    Subject: RE: WE And Microsoft Development Environments


    You can have a place on my site.  After all, my site is a technology site 
as well.  

     

    From: RicksPlace [mailto:[email protected]] 
    Sent: Saturday, April 14, 2012 3:44 PM
    To: [email protected]
    Subject: Re: WE And Microsoft Development Environments

     

    Hi Kate: 

    Well, have a hot key working and the MSAA stuff working and next up will be 
a simple Window Hook to display the Properties related to a Window or Window 
Control.

    Then I will write up the step by step and...

    I will make them available to wherever, doesnt matter.

    What would be good is an index of links with pages of tutorials online but 
I dont want to spend the time to build that.

    I will see if there is a way to have tutorials linked to from App "Central 
but 

    I will likely give them to Chip to add to his current Scripting tutorial 
series as I did with the Globalization Tutorial.

    I have not done much with Windoweyes nor scripting in some time now so am 
not familiar with where things are located but can usually find them if I need 
them.

    Later Kate and have a good weekend.

     Rick USA

      ----- Original Message ----- 

      From: Katherine Moss 

      To: [email protected] 

      Sent: Saturday, April 14, 2012 1:11 PM

      Subject: RE: WE And Microsoft Development Environments

       

      You should post them to app central where we all can see them!  That 
would be nice for those of us .NET junkies over here LOL.  Because I'm sure 
that I'm not the only one who is.  

       

      From: RicksPlace [mailto:[email protected]] 
      Sent: Saturday, April 14, 2012 5:01 AM
      To: [email protected]
      Subject: Re: WE And Microsoft Development Environments

       

      Hi Aaron.

      Thanks again and I will continue experimenting with it today.

        My old Script (App) defined (Registered) a Hot Key that worked and I 
think accessed a Window Object's Properties and Events.

        If these work that will demo:

        Use of MSAA;

        Use of a Window Object;

        Use of a Hot Key.

        That should make for a pretty decent intro demo and tutorial to post up 
someplace.

        I will likely continue with a second Demo and Tutorial with a few more 
features after this one.

        So far so good.

        Rick USA

        ----- Original Message ----- 

        From: Aaron Smith 

        To: [email protected] 

        Sent: Friday, April 13, 2012 8:35 PM

        Subject: Re: WE And Microsoft Development Environments

         

        On 4/13/2012 5:19 PM, RicksPlace wrote: 

        It still needs some testing and the Form1 grabs focus sometimes even 
though hidden.


        You can keep the form from displaying by creating a Main() routine, and 
putting your startup logic there:



Sub Main()   ' Instantiate your form   Dim myForm as Form1 = New Form1()    ' 
Put initialization stuff here instead of in Form_OnLoad    ' Continue on 
without displaying the form   Application.Run()End SubIf you then ever need to 
show the form, you can do myForm.Show()

        You can do this in C#, too, by changing code in the Main() function in 
Program.cs from:

            Application.Run(new Form1());

        to

            Form myForm = new Form1();
            Application.Run();

        Aaron

-- Aaron Smith Web Development * App Development * Product Support SpecialistGW 
Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825260-489-3671 * 
gwmicro.com To insure that you receive proper support, please include all 
pastcorrespondence (where applicable), and any relevant informationpertinent to 
your situation when submitting a problem report to the GWMicro Technical 
Support Team.

Reply via email to