[jawsscripts] Re: Close window with SendMessage function?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 11 Aug 2009 18:29:38 -0700

Thanks, that does close the main window as well. It was a bit of a long shot 
anyway, but passing through the exact window handle has no effect.

This is insane... I'm trying to script the HTML Kit Tools app, which is the 
registered version of the HTML Kit, and these menus are driving me crazy. 
The app works fine until you open the menus, or just access the toolbar, 
which is all MSAA driven. I don't know what they're using to do this though, 
because after you open the toolbar, you can't get rid of it. You can press 
escape till the cows come home, and it does nothing. It's like the toolbar 
captures focus like a demented monkey, and refuses to let go of focus like a 
peanut... Nothing is highlighted, nothing has focus except the main toolbar 
object, which your only indication of this is by pressing insert+t which 
announces toolbar, even you aren't actually in one...

I swear, this thing was created by warped demons just to vex me, I know it!


----- Original Message ----- 
From: "Roy Nickelson" <roylee@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, August 11, 2009 2:46 PM
Subject: [jawsscripts] Re: Close window with SendMessage function?


>I borrowed this from the skype scripts it should do what you want.
> postMessage(hwnd, 0x10, 0, 0)  ; 0x10 is WM_Close
>
> ----- Original Message ----- 
> From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Tuesday, August 11, 2009 3:12 PM
> Subject: [jawsscripts] Close window with SendMessage function?
>
>
> Does anyone know what the correct parameters are for forcing a window to
> close using the SendMessage function? The window handle is pretty obvious,
> but I'm not sure what the other constants should be.
> Thanks,
> Bryan
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
> 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: