PDA

View Full Version : Positioning and closing boxes & OSK's


LOUDWORLD
12-04-2008, 01:58 AM
Hello!

I am still struggling with a few aspects of this project; figured out the on screen keyboard though, opening it at least

1) How can I position the Page.Search dialog box so it comes up at a specific spot everytime, not overlapping the OSK?

2) When the user navigates away from the Search page, either by going to the search result, or back to the main page I would like the OSK.exe and the Page.Search dialog box to close so they are not on top of the new page.

3) I guess I lack some basic experience with some coding, I know it is related to the window handles but I don't know how to retrieve the results (or where they are stored) when I enumerate the processes.

Might be in over my head, would appreciate any help offerred. Project attached.

Thank You!
Lou

holtgrewe
12-05-2008, 10:42 AM
Hopefully this can get you started in the right direction.
The code below will show you how to find all open processes and display them in a dialog message.
Refer to the help file under Window.EnumerateProcesses() and it will assist in finding and closing the open window you want to close.
Put the code below on a button for testing...

windows = Window.EnumerateProcesses();

for handle, program in windows do
Dialog.Message("handle & program", "Handle: "..handle.."\r\nProgram:"..program)
end