Re: [IronPython] [python] Re: Getting window properties

2008-01-08 Thread Michael Foord
Jim Hugunin wrote: > Another option would be to use the System.Windows.Automation library - new in > .NET 3.0. It's a lot easier to use than the native APIs when it works for > you. This sample will print the titles of all the top-level windows. > > -- > impo

Re: [IronPython] Getting window properties

2008-01-08 Thread Curt Hagenlocher
On Jan 8, 2008 11:06 AM, Jim Hugunin <[EMAIL PROTECTED]> wrote: > Another option would be to use the System.Windows.Automation > library - new in .NET 3.0. Oooh, nice! For some reason I had thought that this was only for WPF apps. Perhaps that's because the docs[1] describe this as "Provides sup

Re: [IronPython] Getting window properties

2008-01-08 Thread Jim Hugunin
Another option would be to use the System.Windows.Automation library - new in .NET 3.0. It's a lot easier to use than the native APIs when it works for you. This sample will print the titles of all the top-level windows. -- import clr clr.AddReference('UIAut

Re: [IronPython] Hosting and globals

2008-01-08 Thread Curt Hagenlocher
On Jan 8, 2008 8:27 AM, Slide <[EMAIL PROTECTED]> wrote: > > So, if I have a module and inside that module I have an import > statement. Does that imported module reside below the ScriptScope of > the module I created? No, each module is its own ScriptScope. When you import one module from anothe

Re: [IronPython] Hosting and globals

2008-01-08 Thread Slide
On Jan 8, 2008 9:17 AM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > On Jan 8, 2008 6:58 AM, Slide <[EMAIL PROTECTED]> wrote: > > I am trying to update my application to use the Hosting APIs from > > alpha 7, one thing that I can't seem to figure out is how to access > > "globals" to add stuff fro

Re: [IronPython] Hosting and globals

2008-01-08 Thread Curt Hagenlocher
On Jan 8, 2008 6:58 AM, Slide <[EMAIL PROTECTED]> wrote: > I am trying to update my application to use the Hosting APIs from > alpha 7, one thing that I can't seem to figure out is how to access > "globals" to add stuff from my application to be used by the script. What kind of reference do you ha

[IronPython] Hosting and globals

2008-01-08 Thread Slide
I am trying to update my application to use the Hosting APIs from alpha 7, one thing that I can't seem to figure out is how to access "globals" to add stuff from my application to be used by the script. Any help would be appreciated. Thanks, slide ___ U

Re: [IronPython] Getting window properties

2008-01-08 Thread Fuzzyman
Marcus Patino Pan wrote: > Hello, > > I wondered if you could help me. I have IronPython working fine, but > what I would like to do is use it to test another application. I have > worked out how to use sendkeys but to do proper testing I need to be > able to check if the correct window has app

[IronPython] Getting window properties

2008-01-08 Thread Marcus Patino Pan
Hello, I wondered if you could help me. I have IronPython working fine, but what I would like to do is use it to test another application. I have worked out how to use sendkeys but to do proper testing I need to be able to check if the correct window has appeared on screen, so need to check som