جميل جدا " رد إحترافى بعد الرد البسيط السابق " والأجمل أن يستفيد المتابعون منه
شكرا أخى
شكرا أخى

Page.StartTimer(500);
AllWindows = Window.EnumerateTitles(true);
hActiveWnd = DLL.CallFunction(_SystemFolder .. "\\user32.dll", "GetForegroundWindow", "", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
for CurrentHandle, title in pairs(AllWindows) do
if (CurrentHandle == hActiveWnd) and title ~="My Project" then
Application.Restore();
end
end
Application.Minimize();
File.Run("AutoPlay\\Docs\\2.exe", "", "", SW_SHOWNORMAL, false);
windows = Window.EnumerateTitles();
window_name = "My Project";
AllWindows = Window.EnumerateTitles(true);
hActiveWnd = DLL.CallFunction(_SystemFolder .. "\\user32.dll", "GetForegroundWindow", "", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
for CurrentHandle, title in pairs(AllWindows) do
if (CurrentHandle == hActiveWnd) and title ~="My Project" then
for handle, title in pairs(windows) do
result = String.Find(title, window_name, 1, false);
if (result ~= -1) then
Window.Close(handle, CLOSEWND_SENDMESSAGE);
end
end
Application.Restore();
end
end
تعليق