volt
04-13-2006, 08:38 AM
http://www.indigorose.com/forums/showthread.php?t=15400&highlight=WndHandle
For example, to close this window (indigorose forums), i used the following code and it worked:
windows = Window.EnumerateTitles();
window_name = "stopping a program - Indigo Rose Software Forums - Mozilla Firefox";
for handle, title in windows do result = String.Find(title, window_name, 1, false);
if (result ~= -1) then Window.Close(handle, CLOSEWND_SENDMESSAGE);
end
end
If you are using firefox, it should work perfectly with you
Is it possible for me just to search for just to have
window_name = "stopping a program - Indigo Rose Software Forums"
Because they may not use Firefox =P
For example, to close this window (indigorose forums), i used the following code and it worked:
windows = Window.EnumerateTitles();
window_name = "stopping a program - Indigo Rose Software Forums - Mozilla Firefox";
for handle, title in windows do result = String.Find(title, window_name, 1, false);
if (result ~= -1) then Window.Close(handle, CLOSEWND_SENDMESSAGE);
end
end
If you are using firefox, it should work perfectly with you
Is it possible for me just to search for just to have
window_name = "stopping a program - Indigo Rose Software Forums"
Because they may not use Firefox =P