12-27-2016, 09:08 AM
After several tests, and finally succeeded, adding two lines of code, see the following picture, the entire macro code, if not (wait 0 -WV w *) is not working, and in each waiting window below, add Activation of the code, for example (act (win ("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))), if not, may not find the window!
If QM can automatically add the act code after each wait window! After the end of the current window: automatically add (wait 0 -WV w *) code, it will be more successful! More intelligent!
Finally, thanks to Mr. Gintaras for his great support and help!
After the success of the code is as follows:
Macro Macro1
Trigger SF9
If QM can automatically add the act code after each wait window! After the end of the current window: automatically add (wait 0 -WV w *) code, it will be more successful! More intelligent!
Finally, thanks to Mr. Gintaras for his great support and help!
After the success of the code is as follows:
Macro Macro1
Trigger SF9
run "$desktop$\iMindQ_8_1_1_51836.exe"
int w=wait(30 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
#region Recorded 12/26/2016 4:56:24 AM
int w1=act(win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 35 8 id(2851 w1) 1 ;;push button 'Next >'
wait 0 -WV w1
int w2=wait(16 win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 9 9 id(2689 w2) 1 ;;radio button 'I accept the terms in the l...'
lef 39 5 id(2851 w2) 1 ;;push button 'Next >'
wait 0 -WV w2
int w3=wait(19 win("iMindQ® - InstallShield Wizard" "MsiDialogNoCloseClass"))
lef 13 5 id(4172 w3) 1 ;;check box 'FreeMind (.mm) files'
lef 12 8 id(4175 w3) 1 ;;check box 'MindJet MindManager (.mmap)...'
lef 47 14 id(2851 w3) 1 ;;push button 'Next >'
wait 0 -WV w3
int w4=wait(19 win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 47 12 id(2922 w4) 1 ;;push button 'Install'
wait 0 -WV w4
int w5=wait(30 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
wait 0 -WV w5
int w6=win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass")
lef 41 11 id(2890 w6) 1 ;;push button 'Finish'
#endregion