Paradox Community

Items in pnews.paradox-programming

Subject:Re: enumWindowHandles(winHandles)
Date:Fri, 21 Dec 2018 18:05:13 +1100
From:Robert MacMillan <macfam@bigpond.net.au>
Newsgroups:pnews.paradox-programming
Here is what comes back and I thought I needed these key values to 
access Windows Windows. But that proves not to be the case. The Handles 
I need come from enumWindowNames - I think -

It looks like the way of using this is to use getKeys ( var keyNames 
Array[ ] String ) and then parse that looking up each value in turn.

On 21/12/2018 4:09 PM, Kevin Zawicki wrote:
> If you are saying you need to do sort of an index of on part of the array
> value, I think you have to step through and do a search or match on the string.
> Not hard.
> Could you post a small example of the array?
>
>
>
> "Thies Grimm" <thies.grimm@t-online.de> wrote:
>>
>> Hello Robert,
>>
>> first find the Classname of your program
>> (use enumWindowNames("tblClassNames.db") todo so)
>> For Notepad the Classname is Notepad.
>>
>> then start enumWindowHandles(winHandles, "Notepad")
>> the dynArray now should be very small, so it is easy to look for your value
>>
>> Have fun!
>>
>> Thies
>>
>> to do: do!
>>
>>
>> Robert MacMillan <macfam@bigpond.net.au> wrote:
>>> This has to be so simple but I cant quite figure out how to do it.
>>>
>>> This function generates a Dynamic Array with a Key - which is the
>>> Windows Window ID and the Value which is the name of the window. How can
>>
>>> I parse the array for the Window Name and extract the Key Value to pass
>>
>>> to a Windows API Sendmessage call to the particular window.
>>>
>>> Surely there is some way easy way to search the array, short of dealing
>>
>>> with it item by item, to find a specific Window Name and the
>>> corresponding Key which is the internal Windows ID. So lets say I want
>
>>> to find the window called, in the values, for example "Untitled -
>>> NotePad" and its associated Windows ID. In my case there will only be
>>> one window at a time open with the correct value whereas of course could
>>
>>> be several NotePad windows open at one time.
>>>
>>> There is a function called indexOf ( const value AnyType ) LongInt but
>
>>> that does not work to locate a value which is the Windows Window
>>> Destripter - in text - and then return the Key.
>>>
>>> I can stick the array in a table and then do a locate but I would really
>>
>>> like to do the process entirely from the Dynamic Array but cant figure
>
>>> out how.
>>>
>>> Thanks
>>>
>>> Robert
>>
>



Copyright © 2004 thedbcommunity.com