S
Sergey Smirnov
Hello,
I'm developing some macro for MS Word and have a problem.
To reproduce it, create simple user form, add a button
control to it and several other controls, for example
textbox, checkbox and combobox. Now execute the following
apple script behind the button using MacScript function
try
tell application Finder
set wordApp to first process whose
frontmost is true
end tell
end try
tell application Finder
activate window 0
end tell
try
tell application Finder
set frontmost of wordApp to true
end tell
end try
After this you could see the follwoing strange behaviour -
all works just fine but any control on the form now
requires for its operation mouse double click instead of
single click. For example if you want to click on button,
double-click on it works just fine but single click never
works. The same is true if you want to activate textbox,
select something in the dropdown list or select checkbox.
However if you switch to some another application manually
and then switch back to Word, everything starts working
normally with single clicks. This problem occurs in both
Word X and Word 2004 but only under Mac OS 10.3. When we
try it under 10.2 everything works correctly for both
versions of Word.
Could anyone please help with this issue?
Thanks in advance,
Sergey Smirnov
I'm developing some macro for MS Word and have a problem.
To reproduce it, create simple user form, add a button
control to it and several other controls, for example
textbox, checkbox and combobox. Now execute the following
apple script behind the button using MacScript function
try
tell application Finder
set wordApp to first process whose
frontmost is true
end tell
end try
tell application Finder
activate window 0
end tell
try
tell application Finder
set frontmost of wordApp to true
end tell
end try
After this you could see the follwoing strange behaviour -
all works just fine but any control on the form now
requires for its operation mouse double click instead of
single click. For example if you want to click on button,
double-click on it works just fine but single click never
works. The same is true if you want to activate textbox,
select something in the dropdown list or select checkbox.
However if you switch to some another application manually
and then switch back to Word, everything starts working
normally with single clicks. This problem occurs in both
Word X and Word 2004 but only under Mac OS 10.3. When we
try it under 10.2 everything works correctly for both
versions of Word.
Could anyone please help with this issue?
Thanks in advance,
Sergey Smirnov