OK, I am lhaving trouble getting my Autoplay Apllication window to restore after running an installation routine.
Scritpting used:
OnClick
File.Open("AutoPlay\\Docs\\setup.exe", _SourceFolder.."\\AutoPlay\\Docs", SW_SHOWNORMAL)
Window.Minimize(Application.GetWndHandle());
OnLeave
Window.Restore(Application.GetWndHandle());
result = Dialog.Message("Notice", "Thank You for Installing dabl Primary. Click OK to continue", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Page.Jump("Page1");
This all works well except for the restore bit. The problem I think is that the Autoplay window is losing its windows focus. Because after I click on the minimised window, the rest of the routine works.
Being a non-programmer, I have no idea how to get the focus back to the Autoplay minimised window automatically.
Thanks


