Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate exe files, unable to respond to trigger hotkey
#29
I mean: The following three files written to a code QM document,And finally generate exe file, and auhotkey.dll file to find packages together, copy to another computer:

1.AHK response hotkey code is relatively simple(In QM, the definition of the trigger hotkey code, more difficult to understand)

2.QM recording installation code is relatively simple(In the AHK, there is no recording feature, code handwriting more difficult)

3.QM recording uninstallation code is relatively simple(In the AHK, there is no recording feature, code handwriting more difficult)

QM can call the AHK dll file, so: I want the following three files of the code, write to a QM, the generated exe file, in other computers also successfully run

can I achieve?
————————————————————————————————————
1.The first file: trigger hotkey.ahk
Code:

^ F10 ::
Run, install.exe

^ F11::
Run, uninstall.exe
————————————————————————————
2.The second file: install.exe (QM build)
Code:

Macro Macro3
Code:
Copy      Help
#region Recorded 2016-12-28 20:14:44
run "$qm$\iMindQ_8_1_1_51836.exe"

int w2=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 43 11 id(2851 w2) 1 ;;push button 'Next >'
wait 0 -WV w2

int w3=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 21 10 id(2689 w3) 1 ;;radio button 'I accept the terms in the l...'
lef 45 10 id(2851 w3) 1 ;;push button 'Next >'
wait 0 -WV w3

int w4=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogNoCloseClass"))
lef 39 11 id(4172 w4) 1 ;;check box 'FreeMind (.mm) files'
lef 38 9 id(4175 w4) 1 ;;check box 'MindJet MindManager (.mmap)...'
lef 41 14 id(2851 w4) 1 ;;push button 'Next >'
wait 0 -WV w4

int w5=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 41 14 id(2922 w5) 1 ;;push button 'Install'
wait 0 -WV w5

int w6=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
wait 0 -WV w6

int w7=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 41 14 id(2890 w7) 1 ;;push button 'Finish'
#endregion

————————————————————————————
3.The third file: uninstall.exe (QM build)
Code:

Macro Macro3
Code:
Copy      Help
#region Recorded 2016-12-28 20:13:55
run "$qm$\iMindQ_8_1_1_51836.exe"

int w=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 39 7 id(2851 w) 1 ;;push button 'Next >'
wait 0 -WV w

int w3=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 42 14 id(624 w3) 1 ;;radio button 'Remove'
lef 41 7 id(2851 w3) 1 ;;push button 'Next >'
wait 0 -WV w3

int w4=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 41 7 id(2974 w4) 1 ;;push button 'Remove'
wait 0 -WV w4

int w5=wait(0 WA win("iMindQ® Installer Information" "MsiDialogNoCloseClass"))
lef 40 17 id(11 w5) 1 ;;push button 'Yes'
wait 0 -WV w5

int w6=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
wait 0 -WV w6

int w7=wait(0 WA win("iMindQ® - InstallShield Wizard" "MsiDialogCloseClass"))
lef 36 14 id(2890 w7) 1 ;;push button 'Finish'

#endregion


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)