[jawsscripts] Re: Switching to a different window by windows name or handle

  • From: "Rishi D Mack" <minimack_19@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 21 Mar 2015 20:48:44 -0700

Thanks.

-----Original Message----- 
From: Jonathan C Cohn
Sent: Saturday, March 21, 2015 3:39 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Switching to a different window by windows name 
or handle

This all depends on what the application provides you. One simple way that 
will occasionally work is to use the function that I believe is called 
ClickObjectByName. If you are using the SetFocus command then this is using 
a Windows Handle which is a unique number that Windows gives to a object 
when the CreateWindow is called. Once you find this window handle with 
FindWindow or FindDescendentWindow functions then you  can just call 
SetFocus( myHandle ) where MyHandle is a handle variable.

If your application only has one window but several controls then you need 
to find the MSAA or UIA object and then activate that.

Take care,

Jonathan

> On Mar 21, 2015, at 19:35, Rishi D Mack <minimack_19@xxxxxxxxxxx> wrote:
>
> Do you think you  could tell me the process of writing this script? or 
> show
> where me where I can learn this. I don't want complex things but there's
> sertain things that I need to get  done. any help appreciated
>
> -----Original Message----- 
> From: Travis Roth
> Sent: Thursday, March 05, 2015 10:30 AM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Switching to a different window by windows name
> or handle
>
> Once you have found the window handle you can use setFocus().
>
> If you are setting focus to main apps such as Outlook, I would suggest 
> using
> Windows features instead. E.g., dock the app on the Qucik Start toolbar,
> then the Windows Key + number of its position will switch to it if it is
> open.
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Cory Woodrow
> Sent: Thursday, March 05, 2015 11:31 AM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Switching to a different window by windows name or
> handle
>
> I need to set up a series of keystrokes to activate / bring focus to a set
> list of Windows For example, when Ctrl-alt-O is pressed, it brings Outlook
> to the front I can't find the command to actually call the window to the
> front Ideas?  Thanks __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>

__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: