[jawsscripts] Re: minimizing the window

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 1 Sep 2009 16:28:02 +0100

There are a number of definitions included in winUser.h.  See, for example:

http://www.woodmann.com/fravia/sources/WINUSER.H

hth

  Martin




----- Original Message ----- 
From: "Jitendra" <jeet.invincible@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, September 01, 2009 4:08 PM
Subject: [jawsscripts] Re: minimizing the window


> Hello, I removed the 0 as you have said, but that did not work eather.
> I have another question, is there any offline or online book or
> documentation containing all of these wm and any such constentses for
> send message and post message functions?
> Thank you, Jitendra.
> Martin Slack wrote:
>> You wrote:
>>
>>
>>> I tried both messageFunctions before mailing this question, and that did
>>> not minimize my window,
>>>
>>
>> I understand that.  Did you read what I wrote about modifying the calling
>> parameters?  If I call:
>>
>> SendMessage (h, iMessage, iParam) then the window with focus is 
>> minimized,
>>
>> But if I call:
>>
>> SendMessage (h, iMessage, iParam, 0), or PostMessage with either set of
>> parameters, then it is not.
>>
>> hth
>>
>>   Martin
>>
>>
>>
>>
>>> Martin Slack wrote:
>>>
>>>> Hi Jitendra,
>>>>
>>>>   In the JAWS SendMessage and PostMessage functions, the fourth 
>>>> parameter
>>>> is
>>>> optional.  If you omit it, instead of entering the default value of 
>>>> zero,
>>>> then SendMessage will work in your function, but PostMessage will not. 
>>>> I
>>>> also notice that SendMessage returns an integer, while PostMessage
>>>> returns
>>>> void.
>>>>
>>>>   I don't know why any of the above happens.
>>>>
>>>>   hth
>>>>
>>>> Martin
>>>>
>>>>
>>>> ----- Original Message ----- 
>>>> From: "Jitendra" <jeet.invincible@xxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Monday, August 31, 2009 10:15 PM
>>>> Subject: [jawsscripts] minimizing the window
>>>>
>>>>
>>>>
>>>>
>>>>> Hello friends, I tried the post and send message functions, but unable
>>>>> to minimize the window, so what could be the problem?
>>>>> Int Function WindowMinimize(Handle h)
>>>>> Var
>>>>> Int iMessage, Int iParam
>>>>>
>>>>> If !h Then
>>>>> Let h = GetFocus()
>>>>> EndIf
>>>>>
>>>>> Let iMessage = 0x0112
>>>>> Let iParam = 0xF020
>>>>> Return PostMessage(h, iMessage, iParam, 0)
>>>>> EndFunction
>>>>> Then I called it in a script with getfocus as hwnd parameter.
>>>>> Thank you, Jitendra.
>>>>> __________
>>>>> Visit and contribute to The JAWS Script Repository
>>>>> http://jawsscripts.com
>>>>>
>>>>> View the list's information and change your settings at
>>>>> //www.freelists.org/list/jawsscripts
>>>>>
>>>>>
>>>>>
>>>> --------------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com
>>>> Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date:
>>>> 08/31/09
>>>> 05:50:00
>>>>
>>>> __________
>>>> Visit and contribute to The JAWS Script Repository 
>>>> http://jawsscripts.com
>>>>
>>>> View the list's information and change your settings at
>>>> //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
>>> //www.freelists.org/list/jawsscripts
>>>
>>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com
>> Version: 8.5.409 / Virus Database: 270.13.72/2337 - Release Date: 
>> 08/31/09
>> 05:50:00
>>
>> __________
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> //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
> //www.freelists.org/list/jawsscripts
>


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.73/2338 - Release Date: 08/31/09 
17:52:00

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

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

Other related posts: