Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for the hidden program to exit
#2
The following waiting program code, when the program is running, the QM dialog box will lose response, when the program is finished, it will display normal. Is there any good way to keep the dialog box normal? thank you very much Heart




Macro Ghost Backup
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x8 0 0 346 242 "Ghost Backup"
;3 Button 0x54032000 0x0 116 92 124 42 "Backup"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 3 ;;Backup
,int exitCode1=run("$qm$\Ghost64.exe" "-clone,mode=pdump,src=1:1,dst=E:\Back.GHO -z9 -sure" "" "" 16|0x400); err
,mes "Backup is ok"
ret 1

The following two methods of waiting for the program to exit

Will make the QM dialog box unresponsive

_____________________________________________________________________

__Handle h=run("$system$\mspaint.exe" "" "" "" 16)
mes "mspaint is Hidden running"
wait 0 H h
_____________________________________________________________________

int exitCode1=run("$qm$\Ghost64.exe" "-clone,mode=pdump,src=1:1,dst=E:\Back.GHO -z9 -sure" "" "" 16|0x400); err


Messages In This Thread
Waiting for the hidden program to exit - by win - 08-19-2018, 04:38 AM
RE: Waiting for the hidden program to exit - by win - 08-19-2018, 06:15 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)