|
|||
|
My application is not responding for the code pasted bellow.
Followings are the application definitions that I have set. 1. Window shape –Rectangle 2. Boarder – none 3. Boader icon- N/A 4. Scale – 100% 5. Caption/taskbar text – ulc (same, placed in the coding as wnd name) 6.also SysTray.useDefaultHandler = false; Code:
var wnd = Window.getWindowsByName(ulc);
var w = getMainWnd();
var has = false;
for (i = 0; i < wnd.length(); i++)
{
if (wnd[i].handle != w.handle)
{
has = true;
break;
}
}
if (has)
{
wnd[i].bringToTop();
return false;
}
//function1 ()
//function2 ()
return true;
|
|
|||
|
I tried same, but It wont work, Then what I did was just prompted the values to check,
var wnd = Window.getWindowsByName("ulc"); var w = getMainWnd(); prompted values were wnd ="" (no value) and w = [object window] ( these text including sq brackets) What am I supposed to do now? Do I need to trace these values? -Thanks. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|