hello everybody!
i have a problem , i wish you can solve it!
first i want to run a program like "Notepad" and wait for its
close for rest of the actions:
==================================
result = File.Run("notepad.exe", "", "", SW_SHOWNORMAL, true);
==================================
but my problem is here
imagine sometimes(not always) notepad.exe will run and for unknown reasons
you are still in your autorun!
so you can press Alt+TAB(one time or ....) to change your window
i can use these actions for this problem
=========================================
windows = Window.EnumerateTitles();
window_name = "Notepad";
for handle, title in windows do
result = String.Find(title, window_name, 1, false);
if (result ~= -1) then
Window.SetOrder(handle, HWND_TOPMOST);
end
end
=========================================
but if you remebered first action it's impossible to execute an action
when your program is waiting for notepad's response!
it's something i have to add
i'm already using Page.Timer!
honestly first code is in PageTimer!
how can i solve this problem?
i just know one way!
1- execute two actions in same time
can anybody help me?

