Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling macro from open dialog
#5
That works great, thanks kindly Gintaras. Is it also possible to send a parameter back from the function to the dialog?
So once the loop is complete, send the word success back to the edit box?

Function Dialog3
Code:
Copy      Help
sel wParam
,case 3
,SetDlgItemText hDlg 7 ""
,EnableWindow id(3 hDlg) 0; EnableWindow id(4 hDlg) 1
,mac "Loop" "" hDlg _s.getwintext(id(5 hDlg))
,e7=message

Function Loop
Code:
Copy      Help
;;function that accepts argumnents from dialog and returns success message to dialog
/
function int'count int'e5 str'message
message="success!"
for count 1 e5
,wait 1
,out count
ret message


Thanks kindly
Matt


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)