Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for process completion
#3
THanks for the reply - I tried most of the alts suggested but none so far have solved the problem. The code below is the smallest example. As it says in the comment, it seems to ignore waits on handles, any type of wait on any handle.

Would the code snippet work on your machine? Calling a Word macro from the menu?

Is there a way of calling the Word menu directly?

Can you suggest a method of creating a lock before the Word section executes and having the Word code gobble it up?

Thanks


int w4
run("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" "" "" "" 0 "Word" w4)
; wait 0 WA w4 - blows by this statement
wait 2
lef 441 47 w4
mes "filedialog lock"
;wait 0 WP w4 - ignores this statement
mes "filedialog unlock"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)