Indigo Rose Software
  #1  
Old 11-14-2003
sferguson sferguson is offline
Indigo Rose Customer
 
Join Date: Oct 2003
Posts: 164
window woes

alright, i've been fighting with this thing for a while now, see if anyone knows the correct APM5 method for getting this done. trying to find the window "Reporter Base 7 - BI" -- I put in a dialog to alert when the window is found, which it has been. i run into problems when i try to bring it to the front. i have included the code i am running, any help is much appreciated. (ps. this is just the current window.show iteration i tried, i've been through a couple of possibilities.)

--

tabCurWins = Window.EnumerateProcesses();

iLoop = 1;
iMax = Table.Count(tabCurWins);
bWinFound = false;

while (iLoop < iMax) do
if (tabCurWins[iLoop]) == "Reporter Base 7 - BI" then
iLoop = iLoop + 1;
else
bWinFound = true;
result = Dialog.Message("Notice", "Found it!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Window.Show(iLoop.GetWndHandle());
iLoop = 100;
end
end
Reply With Quote
  #2  
Old 11-14-2003
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Instead of Window.EnumerateProcesses(), take a look at Window.EnumerateTitles() and instead of Window.Show(), look at Window.SetOrder().

I believe that should accomplish what you are trying to do. Take a look at the Window.EnumerateTitles() example because it is similar to what you are trying to accomplish, but also use the Window.SetOrder() action instead of the Close for that example.

Hope that helps.

Last edited by Darryl; 11-14-2003 at 11:02 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software