Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setwintext against EditReplaceSel
#4
Macro Macro10
Code:
Copy      Help
\Dialog_Editor

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;4 Edit 0x54030080 0x200 8 8 96 12 ""
;3 Button 0x54032000 0x0 8 24 44 16 "Run"
;END DIALOG
;DIALOG EDITOR: "" 0x2040701 "*" "" "" ""

str controls = "4"
str e4
e4="notepad.exe"
if(!ShowDialog(dd &sub.DlgProc &controls)) 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 3
,str sFile.getwintext(id(4 hDlg))
,
,int h=id(3 hDlg)
,EnableWindow h 0
,
,opt waitmsg 1 ;;process messages while waiting
,wait 0 H mac("sub.Thread" "" sFile) ;;run code in other thread and wait
,
,EnableWindow h 1
,case IDOK
,case IDCANCEL
ret 1


#sub Thread
function str'sFile

run sFile "" "" "" 0x400


Messages In This Thread
setwintext against EditReplaceSel - by ssimop - 07-15-2018, 09:18 AM
RE: setwintext against EditReplaceSel - by ssimop - 07-15-2018, 10:20 AM
RE: setwintext against EditReplaceSel - by Gintaras - 07-15-2018, 03:15 PM
RE: setwintext against EditReplaceSel - by ssimop - 07-15-2018, 05:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)